summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-05-31 21:36:23 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-05-31 21:44:34 +0200
commit93f1a06374e335e8508d89e1bdaadf45be6ab777 (patch)
treee8324729ee031bd3e6d91536c5271f9210345482
parentd8e40d62ab871a87fde421c4b246bb45bc3cbe2d (diff)
util: ignore_file should not allow files ending with '~'
ignore_file currently allows any file ending with '~' while it seems that the opposite was intended: a228a22fda4faa9ecb7c5a5e499980c8ae5d2a08
-rw-r--r--src/shared/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index 0c273943e7..17b0ae16cf 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -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);
}