mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
path-util: use STR_IN_SET() where appropriate
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user