-/* SPDX-License-Identifier: LGPL-2.1+ */
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include "sd-bus.h"
#include "alloc-util.h"
#include "busctl-introspect.h"
+#include "path-util.h"
#include "string-util.h"
#include "util.h"
#include "xml.h"
node_path = TAKE_PTR(name);
else {
- if (endswith(prefix, "/"))
- node_path = strappend(prefix, name);
- else
- node_path = strjoin(prefix, "/", name);
+ node_path = path_join(prefix, name);
if (!node_path)
return log_oom();
}