diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-04-01 14:26:50 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-04-01 15:23:43 +0200 |
commit | fdf02a4f269aa6f40cfdeacff43ccaf0386c3408 (patch) | |
tree | 766ea2bb4aa81396c909a8e9accf207d96a3e675 | |
parent | notify: remove spurious whitespace (diff) | |
download | systemd-fdf02a4f269aa6f40cfdeacff43ccaf0386c3408.tar.xz systemd-fdf02a4f269aa6f40cfdeacff43ccaf0386c3408.zip |
path-util: use STR_IN_SET() where appropriate
-rw-r--r-- | src/basic/path-util.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/basic/path-util.c b/src/basic/path-util.c index 92ee3cee2d..5d93e107a7 100644 --- a/src/basic/path-util.c +++ b/src/basic/path-util.c @@ -1235,9 +1235,10 @@ bool hidden_or_backup_file(const char *filename) { assert(filename); if (filename[0] == '.' || - streq(filename, "lost+found") || - streq(filename, "aquota.user") || - streq(filename, "aquota.group") || + STR_IN_SET(filename, + "lost+found", + "aquota.user", + "aquota.group") || endswith(filename, "~")) return true; |