chiark / gitweb /
util: ignore_file should not allow files ending with '~'
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Sat, 31 May 2014 19:36:23 +0000 (21:36 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Sat, 31 May 2014 19:44:34 +0000 (21:44 +0200)
ignore_file currently allows any file ending with '~' while it
seems that the opposite was intended:
a228a22fda4faa9ecb7c5a5e499980c8ae5d2a08

src/shared/util.c

index 0c273943e7e671d20439dd7f7962e5c382d50032..17b0ae16cf8398566abd1a9769624bec4aa1a172 100644 (file)
@@ -1371,7 +1371,7 @@ bool ignore_file(const char *filename) {
         assert(filename);
 
         if (endswith(filename, "~"))
-                return false;
+                return true;
 
         return ignore_file_allow_backup(filename);
 }