chiark / gitweb /
path-util: introduce path_simplify()
[elogind.git] / src / basic / mount-util.c
index 9d1f34e0819c5d1e1dd4e09382b53369dc2d1870..76c0969d45faab941de0039939586591a6d7a0ce 100644 (file)
@@ -414,7 +414,7 @@ int bind_remount_recursive_with_mountinfo(const char *prefix, bool ro, char **bl
         if (!cleaned)
                 return -ENOMEM;
 
-        path_kill_slashes(cleaned);
+        path_simplify(cleaned, false);
 
         done = set_new(&path_hash_ops);
         if (!done)