diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-09-12 02:13:47 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-09-12 08:30:16 +0200 |
commit | 13e709c53f700a18a660feebdf72c613a233bf48 (patch) | |
tree | 248b913b7bb6629b751bbd5a79a7e3c6b55dd1af /util-linux/mount.c | |
parent | dd1061b6a79b0161597799e825bfefc27993ace5 (diff) | |
download | busybox-w32-13e709c53f700a18a660feebdf72c613a233bf48.tar.gz busybox-w32-13e709c53f700a18a660feebdf72c613a233bf48.tar.bz2 busybox-w32-13e709c53f700a18a660feebdf72c613a233bf48.zip |
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 05e532cda..b51ab1782 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
@@ -1809,7 +1809,7 @@ static int singlemount(struct mntent *mp, int ignore_busy) | |||
1809 | if (ENABLE_FEATURE_MOUNT_LOOP && S_ISREG(st.st_mode)) { | 1809 | if (ENABLE_FEATURE_MOUNT_LOOP && S_ISREG(st.st_mode)) { |
1810 | loopFile = bb_simplify_path(mp->mnt_fsname); | 1810 | loopFile = bb_simplify_path(mp->mnt_fsname); |
1811 | mp->mnt_fsname = NULL; // will receive malloced loop dev name | 1811 | mp->mnt_fsname = NULL; // will receive malloced loop dev name |
1812 | if (set_loop(&mp->mnt_fsname, loopFile, 0) < 0) { | 1812 | if (set_loop(&mp->mnt_fsname, loopFile, 0, /*ro:*/ 0) < 0) { |
1813 | if (errno == EPERM || errno == EACCES) | 1813 | if (errno == EPERM || errno == EACCES) |
1814 | bb_error_msg(bb_msg_perm_denied_are_you_root); | 1814 | bb_error_msg(bb_msg_perm_denied_are_you_root); |
1815 | else | 1815 | else |