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.
This commit is contained in:
Mark Whitley 2001-03-12 23:17:26 +00:00
parent 94fd480bab
commit bd2e42f162
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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