]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
path-util: use STR_IN_SET() where appropriate
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Apr 2022 12:26:50 +0000 (14:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Apr 2022 13:23:43 +0000 (15:23 +0200)
src/basic/path-util.c

index 92ee3cee2d12a2f8abbafeba9373d76682e03725..5d93e107a78af899b360170bc82a468dcb557858 100644 (file)
@@ -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;