chiark / gitweb /
core,systemctl: add bus API to retrieve processes of a unit
[elogind.git] / src / basic / path-util.c
index b222146c73f49f0fa2212c19939ffcfdbdd209ae..72c1b016d33cc55f3317232e7f0556d1b42fddc9 100644 (file)
@@ -574,10 +574,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) {