summaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-12-26 18:17:42 +0000
committerDenis Vlasenko2006-12-26 18:17:42 +0000
commit666da5e2c6edec979966d16771818b32dcfafe04 (patch)
treec23e6a01fc51d8419c1562f70836148c705ac46a /util-linux/mount.c
parent270c17c0e66ffe9fe0e47e891a583b5c6f8512ef (diff)
downloadbusybox-666da5e2c6edec979966d16771818b32dcfafe04.zip
busybox-666da5e2c6edec979966d16771818b32dcfafe04.tar.gz
merge post-1.3.0 fixes
Diffstat (limited to 'util-linux/mount.c')
-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 661e26f..b3e8c47 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -1708,10 +1708,13 @@ int mount_main(int argc, char **argv)
// Mount this thing.
+ // NFS mounts want this to be xrealloc-able
+ mtcur->mnt_opts = xstrdup(mtcur->mnt_opts);
if (singlemount(mtcur, 1)) {
/* Count number of failed mounts */
rc++;
}
+ free(mtcur->mnt_opts);
}
}
if (ENABLE_FEATURE_CLEAN_UP) endmntent(fstab);