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:
8887727
)
path-util: one more empty_or_root() change
author
Lennart Poettering
<lennart@poettering.net>
Wed, 25 Apr 2018 09:23:01 +0000
(11:23 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000
(16:47 +0200)
src/basic/path-util.c
patch
|
blob
|
history
diff --git
a/src/basic/path-util.c
b/src/basic/path-util.c
index 48205dc32ebedb8be99bfbbee479efe04b76bbb6..5d39cf0d6c9caf5f692828a7f4ae4030845438df 100644
(file)
--- a/
src/basic/path-util.c
+++ b/
src/basic/path-util.c
@@
-692,11
+692,12
@@
int parse_path_argument_and_warn(const char *path, bool suppress_root, char **ar
return log_error_errno(r, "Failed to parse path \"%s\" and make it absolute: %m", path);
path_kill_slashes(p);
- if (suppress_root &&
path_equal(p, "/"
))
+ if (suppress_root &&
empty_or_root(p
))
p = mfree(p);
free(*arg);
*arg = p;
+
return 0;
}
#endif // 0