diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-04-16 22:52:06 -0400 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-06-16 10:12:57 +0200 |
commit | a2b4b715bfdf3b64037a1a34f6682c7575e6aeca (patch) | |
tree | 2f5fecef685632e0bba2b2a0f79916ad59e87263 /src | |
parent | 39be55bb38f955a837a09bbedc2b7c67b6d6f3e3 (diff) |
tree-wide: introduce PATH_IN_SET macro
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/path-util.c | 8 |
1 files 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) { |