From: Thomas Hindoe Paaboel Andersen Date: Sat, 31 May 2014 19:36:23 +0000 (+0200) Subject: util: ignore_file should not allow files ending with '~' X-Git-Tag: v214~124 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=93f1a06374e335e8508d89e1bdaadf45be6ab777;hp=d8e40d62ab871a87fde421c4b246bb45bc3cbe2d 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 0c273943e..17b0ae16c 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); }