[PATCH 05/12] commands/mount: Return real error code if "mount" fail

Alexander Shiyan shc_work at mail.ru
Sat Apr 12 01:10:58 PDT 2014


Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
---
 commands/mount.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands/mount.c b/commands/mount.c
index 691bc29..77efe71 100644
--- a/commands/mount.c
+++ b/commands/mount.c
@@ -115,7 +115,7 @@ static int do_mount(int argc, char *argv[])
 
 	if ((ret = mount(dev, type, mountpoint, fsoptions))) {
 		perror("mount");
-		return 1;
+		return ret;
 	}
 	return 0;
 }
-- 
1.8.3.2




More information about the barebox mailing list