]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/dbus-execute.c
path-util: introduce path_simplify()
[thirdparty/systemd.git] / src / core / dbus-execute.c
index ec1b62fb421c09a8b142735816ea0e26d01ccd46..8c752ceaa67d56c48be2065cf0a7b24bccd494b6 100644 (file)
@@ -935,7 +935,7 @@ int bus_set_transient_exec_command(
 
                         c->flags = b ? EXEC_COMMAND_IGNORE_FAILURE : 0;
 
-                        path_kill_slashes(c->path);
+                        path_simplify(c->path, false);
                         exec_command_append_list(exec_command, c);
                 }
 
@@ -2051,7 +2051,7 @@ int bus_exec_context_set_transient_property(
                         if (!path_is_absolute(i + offset))
                                 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid %s", name);
 
-                        path_kill_slashes(i + offset);
+                        path_simplify(i + offset, false);
                 }
 
                 if (!UNIT_WRITE_FLAGS_NOOP(flags)) {