From: Rob Landley Date: Tue, 5 Sep 2006 14:00:21 +0000 (-0000) Subject: Vladimir Dronnikov (ybrnj80 at yandex dot ru) pointed out that my cleanup of X-Git-Tag: 1_4_0~746 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4cb035dd2305e3cc1b817a934df176bf1eee4514;p=oweals%2Fbusybox.git 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). --- diff --git a/util-linux/mount.c b/util-linux/mount.c index 3e2f78192..3b95428a0 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -253,8 +253,8 @@ static int mount_it_now(struct mntent *mp, int vfsflags, char *filteropts) 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 @@ static int singlemount(struct mntent *mp, int ignore_busy) // 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;