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.
This commit is contained in:
1 parent
d11578f916
commit
e677dfedd1
2 files changed
+4
-2
No files matched your search
@@ -128,7 +128,8 @@ do_mount(char *specialfile, char *dir, char *filesystemtype,
|
||||
#if defined BB_FEATURE_MOUNT_LOOP
|
||||
if (use_loop==TRUE) {
|
||||
int loro = flags & MS_RDONLY;
|
||||
char *lofile = specialfile;
|
||||
|
||||
lofile = specialfile;
|
||||
|
||||
specialfile = find_unused_loop_device();
|
||||
if (specialfile == NULL) {
|
||||
|
||||
+2
-1
@@ -128,7 +128,8 @@ do_mount(char *specialfile, char *dir, char *filesystemtype,
|
||||
#if defined BB_FEATURE_MOUNT_LOOP
|
||||
if (use_loop==TRUE) {
|
||||
int loro = flags & MS_RDONLY;
|
||||
char *lofile = specialfile;
|
||||
|
||||
lofile = specialfile;
|
||||
|
||||
specialfile = find_unused_loop_device();
|
||||
if (specialfile == NULL) {
|
||||
|
||||
Reference in new issue
Block a user