[systemd-commits] src/shared
Thomas H.P. Andersen
phomes at kemper.freedesktop.org
Sat May 31 12:44:57 PDT 2014
src/shared/util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 93f1a06374e335e8508d89e1bdaadf45be6ab777
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sat May 31 21:36:23 2014 +0200
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
diff --git a/src/shared/util.c b/src/shared/util.c
index 0c27394..17b0ae1 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);
}
More information about the systemd-commits
mailing list