path-util: use STR_IN_SET() where appropriate

This commit is contained in:
Lennart Poettering
2022-04-01 14:26:50 +02:00
parent 6cdd6d1acc
commit fdf02a4f26

View 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;