tmpfiles: merge two nested if checks into one

This commit is contained in:
Lennart Poettering 2019-06-18 12:41:31 +02:00
parent 113ed3be37
commit 20b6bb9560

View file

@ -656,8 +656,10 @@ static int dir_cleanup(
continue;
}
if (mountpoint && S_ISREG(s.st_mode))
if (s.st_uid == 0 && STR_IN_SET(dent->d_name,
if (mountpoint &&
S_ISREG(s.st_mode) &&
s.st_uid == 0 &&
STR_IN_SET(dent->d_name,
".journal",
"aquota.user",
"aquota.group")) {