]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/login/logind-inhibit.c
tree-wide: get rid of strappend()
[thirdparty/systemd.git] / src / login / logind-inhibit.c
index d963706dcef98b227fd29d4c3e8a5b5d616b7636..d32e29910129a1d8c4f7ef29107af44bc132065a 100644 (file)
@@ -17,6 +17,7 @@
 #include "logind-inhibit.h"
 #include "mkdir.h"
 #include "parse-util.h"
+#include "path-util.h"
 #include "string-table.h"
 #include "string-util.h"
 #include "tmpfile-util.h"
@@ -32,7 +33,7 @@ Inhibitor* inhibitor_new(Manager *m, const char* id) {
         if (!i)
                 return NULL;
 
-        i->state_file = strappend("/run/systemd/inhibit/", id);
+        i->state_file = path_join("/run/systemd/inhibit", id);
         if (!i->state_file)
                 return mfree(i);