chiark / gitweb /
path: add .path unit type for monitoring files
[elogind.git] / src / conf-parser.c
index 6994211b1095ace6e014320b46971ae1d2a4b6c2..20f7641b13c5323e1b4600c2501f028ef3d7a1f1 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++;
         }