aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roots.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/roots.c b/roots.c
index a42e355..44fa14a 100644
--- a/roots.c
+++ b/roots.c
@@ -298,7 +298,7 @@ int ensure_path_mounted_at_mount_point(const char* path, const char* mount_point
} else {
// let's try mounting with the mount binary and hope for the best.
char mount_cmd[PATH_MAX];
- sprintf(mount_cmd, "mount %s", path);
+ sprintf(mount_cmd, "mount %s", mount_point);
return __system(mount_cmd);
}