chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39be55b
)
tree-wide: introduce PATH_IN_SET macro
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sun, 17 Apr 2016 02:52:06 +0000
(22:52 -0400)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:57 +0000
(10:12 +0200)
src/basic/path-util.c
patch
|
blob
|
history
diff --git
a/src/basic/path-util.c
b/src/basic/path-util.c
index b222146c73f49f0fa2212c19939ffcfdbdd209ae..72c1b016d33cc55f3317232e7f0556d1b42fddc9 100644
(file)
--- 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) {