svn commit: trunk/busybox/util-linux

landley at busybox.net landley at busybox.net
Tue Sep 5 14:00:22 UTC 2006


Author: landley
Date: 2006-09-05 07:00:21 -0700 (Tue, 05 Sep 2006)
New Revision: 16055

Log:
Vladimir Dronnikov (ybrnj80 at yandex dot ru) pointed out that my cleanup of
his code introduced a bug (an extra backslash in the CIFS mount string).


Modified:
   trunk/busybox/util-linux/mount.c


Changeset:
Modified: trunk/busybox/util-linux/mount.c
===================================================================
--- trunk/busybox/util-linux/mount.c	2006-09-05 13:48:21 UTC (rev 16054)
+++ trunk/busybox/util-linux/mount.c	2006-09-05 14:00:21 UTC (rev 16055)
@@ -253,8 +253,8 @@
 	return rc;
 }
 
-// Mount one directory.  Handles CIFS, NFS, loopback, autobind, and filesystem type
-// detection.  Returns 0 for success, nonzero for failure.
+// Mount one directory.  Handles CIFS, NFS, loopback, autobind, and filesystem
+// type detection.  Returns 0 for success, nonzero for failure.
 
 static int singlemount(struct mntent *mp, int ignore_busy)
 {
@@ -301,7 +301,7 @@
 
 		// compose new unc '\\server-ip\share'
 
-		s = xasprintf("\\\\%s\\%s",ip+3,strchr(mp->mnt_fsname+2,'\\'));
+		s = xasprintf("\\\\%s%s",ip+3,strchr(mp->mnt_fsname+2,'\\'));
 		if (ENABLE_FEATURE_CLEAN_UP) free(mp->mnt_fsname);
 		mp->mnt_fsname = s;
 




More information about the busybox-cvs mailing list