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:
parent
94fd480bab
commit
bd2e42f162
1
mount.c
1
mount.c
@ -440,6 +440,7 @@ extern int mount_main(int argc, char **argv)
|
|||||||
device = strdup(m->mnt_fsname);
|
device = strdup(m->mnt_fsname);
|
||||||
directory = strdup(m->mnt_dir);
|
directory = strdup(m->mnt_dir);
|
||||||
filesystemType = strdup(m->mnt_type);
|
filesystemType = strdup(m->mnt_type);
|
||||||
|
string_flags = strdup(string_flags);
|
||||||
singlemount:
|
singlemount:
|
||||||
rc = EXIT_SUCCESS;
|
rc = EXIT_SUCCESS;
|
||||||
#ifdef BB_NFSMOUNT
|
#ifdef BB_NFSMOUNT
|
||||||
|
@ -440,6 +440,7 @@ extern int mount_main(int argc, char **argv)
|
|||||||
device = strdup(m->mnt_fsname);
|
device = strdup(m->mnt_fsname);
|
||||||
directory = strdup(m->mnt_dir);
|
directory = strdup(m->mnt_dir);
|
||||||
filesystemType = strdup(m->mnt_type);
|
filesystemType = strdup(m->mnt_type);
|
||||||
|
string_flags = strdup(string_flags);
|
||||||
singlemount:
|
singlemount:
|
||||||
rc = EXIT_SUCCESS;
|
rc = EXIT_SUCCESS;
|
||||||
#ifdef BB_NFSMOUNT
|
#ifdef BB_NFSMOUNT
|
||||||
|
Loading…
Reference in New Issue
Block a user