From bd2e42f162dfd90b4356ace9e60410832e972a68 Mon Sep 17 00:00:00 2001
From: Mark Whitley <markw@lineo.com>
Date: Mon, 12 Mar 2001 23:17:26 +0000
Subject: Applied a patch from Brian Webb to fix a problem with mount on the
 Agenda PDA. Apparently, the mount() call does not like taking a stack
 allocated pointer.

---
 mount.c            | 1 +
 util-linux/mount.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/mount.c b/mount.c
index a2d6053c0..58d436964 100644
--- a/mount.c
+++ b/mount.c
@@ -440,6 +440,7 @@ extern int mount_main(int argc, char **argv)
 			device = strdup(m->mnt_fsname);
 			directory = strdup(m->mnt_dir);
 			filesystemType = strdup(m->mnt_type);
+			string_flags = strdup(string_flags);
 singlemount:			
 			rc = EXIT_SUCCESS;
 #ifdef BB_NFSMOUNT
diff --git a/util-linux/mount.c b/util-linux/mount.c
index a2d6053c0..58d436964 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -440,6 +440,7 @@ extern int mount_main(int argc, char **argv)
 			device = strdup(m->mnt_fsname);
 			directory = strdup(m->mnt_dir);
 			filesystemType = strdup(m->mnt_type);
+			string_flags = strdup(string_flags);
 singlemount:			
 			rc = EXIT_SUCCESS;
 #ifdef BB_NFSMOUNT
-- 
cgit v1.2.3-55-g6feb