mirror of
https://github.com/sheumann/hush.git
synced 2024-11-05 06:07:00 +00:00
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);
|
||||
directory = strdup(m->mnt_dir);
|
||||
filesystemType = strdup(m->mnt_type);
|
||||
string_flags = strdup(string_flags);
|
||||
singlemount:
|
||||
rc = EXIT_SUCCESS;
|
||||
#ifdef BB_NFSMOUNT
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user