From a2b4b715bfdf3b64037a1a34f6682c7575e6aeca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 16 Apr 2016 22:52:06 -0400 Subject: [PATCH] tree-wide: introduce PATH_IN_SET macro --- src/basic/path-util.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/basic/path-util.c b/src/basic/path-util.c index b222146c7..72c1b016d 100644 --- a/src/basic/path-util.c +++ b/src/basic/path-util.c @@ -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) { -- 2.30.2