aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorwayling <waylingII@gmail.com>2019-12-12 18:00:15 +0800
committerRob Landley <rob@landley.net>2019-12-13 14:14:34 -0600
commitb9e621e86b2b6e40c6d7b83e7fe6cd110433f498 (patch)
treeafb91d062137471a11af9977166e665332c81548 /toys
parent953b23aad3577bcf47b0962ebb286b655add58ba (diff)
downloadtoybox-b9e621e86b2b6e40c6d7b83e7fe6cd110433f498.tar.gz
fix loopback device mount fail
When we "losetup" success need mount loop device. Found this issue on AndroidQ
Diffstat (limited to 'toys')
-rw-r--r--toys/lsb/mount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toys/lsb/mount.c b/toys/lsb/mount.c
index 296d6864..5bf300db 100644
--- a/toys/lsb/mount.c
+++ b/toys/lsb/mount.c
@@ -270,6 +270,7 @@ static void mount_filesystem(char *dev, char *dir, char *type,
dev = tortoise(1, (char *[]){"losetup",
(flags&MS_RDONLY) ? "-fsr" : "-fs", dev, 0});
if (!dev) break;
+ continue;
}
free(buf);