chiark / gitweb /
path: add .path unit type for monitoring files
[elogind.git] / src / conf-parser.c
index 6994211..20f7641 100644 (file)
@@ -337,6 +337,8 @@ int config_parse_path(
         if (!(n = strdup(rvalue)))
                 return -ENOMEM;
 
+        path_kill_slashes(n);
+
         free(*s);
         *s = n;
 
@@ -441,6 +443,8 @@ int config_parse_path_strv(
                         goto fail;
                 }
 
+                path_kill_slashes(n[k]);
+
                 k++;
         }