]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/mount-util.c
path-util: introduce path_simplify()
[thirdparty/systemd.git] / src / basic / mount-util.c
index 2774e48cf33fe86823d70cbcef95d9374e4a66d9..68a83ebae7699ee31029c4b8151524ce304d9136 100644 (file)
@@ -413,7 +413,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)