From 666da5e2c6edec979966d16771818b32dcfafe04 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 26 Dec 2006 18:17:42 +0000 Subject: merge post-1.3.0 fixes --- util-linux/mount.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util-linux/mount.c') 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) // 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); -- cgit v1.2.3