aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-26 18:17:42 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-26 18:17:42 +0000
commitd507f94cf4aad6f3f03f478fcba27ec673d8e1d6 (patch)
treec23e6a01fc51d8419c1562f70836148c705ac46a /util-linux
parent814481658de0435847aa696c3d748871f1c72122 (diff)
downloadbusybox-w32-d507f94cf4aad6f3f03f478fcba27ec673d8e1d6.tar.gz
busybox-w32-d507f94cf4aad6f3f03f478fcba27ec673d8e1d6.tar.bz2
busybox-w32-d507f94cf4aad6f3f03f478fcba27ec673d8e1d6.zip
merge post-1.3.0 fixes
git-svn-id: svn://busybox.net/trunk/busybox@17084 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/mount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 661e26f19..b3e8c478c 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -1708,10 +1708,13 @@ int mount_main(int argc, char **argv)
1708 1708
1709 // Mount this thing. 1709 // Mount this thing.
1710 1710
1711 // NFS mounts want this to be xrealloc-able
1712 mtcur->mnt_opts = xstrdup(mtcur->mnt_opts);
1711 if (singlemount(mtcur, 1)) { 1713 if (singlemount(mtcur, 1)) {
1712 /* Count number of failed mounts */ 1714 /* Count number of failed mounts */
1713 rc++; 1715 rc++;
1714 } 1716 }
1717 free(mtcur->mnt_opts);
1715 } 1718 }
1716 } 1719 }
1717 if (ENABLE_FEATURE_CLEAN_UP) endmntent(fstab); 1720 if (ENABLE_FEATURE_CLEAN_UP) endmntent(fstab);