chiark / gitweb /
kerne-command-line: introduce option 'systemd.restore_state'
[elogind.git] / src / shared / unit-name.c
index 8f6c28e86a84f6ea1fbcc9f6661e98952fa005c7..bc8094d1129e85d36466e34f51d29b2f9de0920c 100644 (file)
@@ -301,7 +301,7 @@ char *unit_name_path_escape(const char *f) {
 
         path_kill_slashes(p);
 
-        if (streq(p, "/")) {
+        if (streq(p, "/") || streq(p, "")) {
                 free(p);
                 return strdup("-");
         }