diff options
author | Denys Vlasenko | 2011-09-12 02:13:47 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-09-12 08:30:16 +0200 |
commit | 13e709c53f700a18a660feebdf72c613a233bf48 (patch) | |
tree | 248b913b7bb6629b751bbd5a79a7e3c6b55dd1af /util-linux/mount.c | |
parent | dd1061b6a79b0161597799e825bfefc27993ace5 (diff) | |
download | busybox-13e709c53f700a18a660feebdf72c613a233bf48.zip busybox-13e709c53f700a18a660feebdf72c613a233bf48.tar.gz |
losetup: implement -r option. Closes 4033.
function old new delta
packed_usage 28595 28633 +38
losetup_main 285 290 +5
singlemount 906 908 +2
set_loop 674 672 -2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r-- | util-linux/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index 05e532c..b51ab17 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -1809,7 +1809,7 @@ static int singlemount(struct mntent *mp, int ignore_busy) if (ENABLE_FEATURE_MOUNT_LOOP && S_ISREG(st.st_mode)) { loopFile = bb_simplify_path(mp->mnt_fsname); mp->mnt_fsname = NULL; // will receive malloced loop dev name - if (set_loop(&mp->mnt_fsname, loopFile, 0) < 0) { + if (set_loop(&mp->mnt_fsname, loopFile, 0, /*ro:*/ 0) < 0) { if (errno == EPERM || errno == EACCES) bb_error_msg(bb_msg_perm_denied_are_you_root); else |