Lines Matching refs:filename
732 char *file_in_same_dir(const char *path, const char *filename) {
737 assert(filename);
740 * filename, unless the latter is absolute anyway or the
743 if (path_is_absolute(filename))
744 return strdup(filename);
748 return strdup(filename);
750 k = strlen(filename);
755 memcpy(mempcpy(ret, path, e + 1 - path), filename, k + 1);
759 bool hidden_file_allow_backup(const char *filename) {
760 assert(filename);
763 filename[0] == '.' ||
764 streq(filename, "lost+found") ||
765 streq(filename, "aquota.user") ||
766 streq(filename, "aquota.group") ||
767 endswith(filename, ".rpmnew") ||
768 endswith(filename, ".rpmsave") ||
769 endswith(filename, ".rpmorig") ||
770 endswith(filename, ".dpkg-old") ||
771 endswith(filename, ".dpkg-new") ||
772 endswith(filename, ".dpkg-tmp") ||
773 endswith(filename, ".dpkg-dist") ||
774 endswith(filename, ".dpkg-bak") ||
775 endswith(filename, ".dpkg-backup") ||
776 endswith(filename, ".dpkg-remove") ||
777 endswith(filename, ".swp");
780 bool hidden_file(const char *filename) {
781 assert(filename);
783 if (endswith(filename, "~"))
786 return hidden_file_allow_backup(filename);