[BusyBox] mount loop bugfix
Magnus Damm
damm at opensource.se
Mon Feb 26 16:14:55 UTC 2001
Hi,
Here's a fix that will make mount free the loopdevice as it should
if the mount() call fails.
Cheers /
Magnus
-------------- next part --------------
--- busybox-0.49/mount.c Wed Jan 24 18:36:37 2001
+++ busybox-0.49-loopfix/mount.c Mon Feb 26 17:02:36 2001
@@ -128,7 +128,8 @@
#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) {
More information about the busybox
mailing list