Lines Matching defs:filename
791 _pure_ static bool hidden_file_allow_backup(const char *filename) {
792 assert(filename);
795 filename[0] == '.' ||
796 streq(filename, "lost+found") ||
797 streq(filename, "aquota.user") ||
798 streq(filename, "aquota.group") ||
799 endswith(filename, ".rpmnew") ||
800 endswith(filename, ".rpmsave") ||
801 endswith(filename, ".rpmorig") ||
802 endswith(filename, ".dpkg-old") ||
803 endswith(filename, ".dpkg-new") ||
804 endswith(filename, ".dpkg-tmp") ||
805 endswith(filename, ".dpkg-dist") ||
806 endswith(filename, ".dpkg-bak") ||
807 endswith(filename, ".dpkg-backup") ||
808 endswith(filename, ".dpkg-remove") ||
809 endswith(filename, ".swp");
812 bool hidden_file(const char *filename) {
813 assert(filename);
815 if (endswith(filename, "~"))
818 return hidden_file_allow_backup(filename);