diff options
Diffstat (limited to 'src/basic/path-util.c')
-rw-r--r-- | src/basic/path-util.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/basic/path-util.c b/src/basic/path-util.c index 5d39cf0d6..957c13bb3 100644 --- a/src/basic/path-util.c +++ b/src/basic/path-util.c @@ -692,12 +692,11 @@ 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 && empty_or_root(p)) + if (suppress_root && path_equal(p, "/")) p = mfree(p); free(*arg); *arg = p; - return 0; } #endif // 0 @@ -928,7 +927,7 @@ int systemd_installation_has_version(const char *root, unsigned minimal_version) if (r < 0) return r; - assert_se((c = endswith(path, "*.so"))); + assert_se(c = endswith(path, "*.so")); *c = '\0'; /* truncate the glob part */ STRV_FOREACH(name, names) { |