aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authormarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-26 17:45:58 +0000
committermarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-26 17:45:58 +0000
commit9563d47ea01feb950ed80c8f79b7854e582e47e1 (patch)
treec2fd1ce42fea21621cafbf3be475a5d8c0717e44 /util-linux
parent548d45c12ee67d9c21300683d0340dd6dfefb350 (diff)
downloadbusybox-w32-9563d47ea01feb950ed80c8f79b7854e582e47e1.tar.gz
busybox-w32-9563d47ea01feb950ed80c8f79b7854e582e47e1.tar.bz2
busybox-w32-9563d47ea01feb950ed80c8f79b7854e582e47e1.zip
Applied patch from Magnus Damm <damm@opensource.se> to fix a 'inner scope var
masking outer scope var with same name' bug that was preventing the loopback device from being unmounted if mount() fails. git-svn-id: svn://busybox.net/trunk/busybox@1938 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/mount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 7b0bf3e21..551695b9b 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -128,7 +128,8 @@ do_mount(char *specialfile, char *dir, char *filesystemtype,
128#if defined BB_FEATURE_MOUNT_LOOP 128#if defined BB_FEATURE_MOUNT_LOOP
129 if (use_loop==TRUE) { 129 if (use_loop==TRUE) {
130 int loro = flags & MS_RDONLY; 130 int loro = flags & MS_RDONLY;
131 char *lofile = specialfile; 131
132 lofile = specialfile;
132 133
133 specialfile = find_unused_loop_device(); 134 specialfile = find_unused_loop_device();
134 if (specialfile == NULL) { 135 if (specialfile == NULL) {