mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-07 14:14:35 +00:00
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:
a228a22fda
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user