From 7ac751f6ea3e71651bfe54083a5b9a93647f0331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= Date: Sat, 8 Jun 2013 12:53:59 -0300 Subject: recovery: use just the mount point instead of the full path When resorting to using mount because a block device uses 'auto' filesystem, we should use the mount point and not the full path. This fixes an issue with nandroid to external sd on yuga. Change-Id: Idbff944ea6d5af9112644c2ed46e23ea0a33e5ee --- roots.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.1