tree-wide: introduce PATH_IN_SET macro

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-04-16 22:57:05 -04:00
parent 9a0a413a19
commit 3ae5990c6e
4 changed files with 25 additions and 8 deletions
+4 -4
View File
@@ -569,10 +569,10 @@ static int binary_is_good(const char *binary) {
if (r < 0)
return r;
return !path_equal(d, "true") &&
!path_equal(d, "/bin/true") &&
!path_equal(d, "/usr/bin/true") &&
!path_equal(d, "/dev/null");
return !PATH_IN_SET(d, "true"
"/bin/true",
"/usr/bin/true",
"/dev/null");
}
int fsck_exists(const char *fstype) {