aboutsummaryrefslogtreecommitdiff
path: root/util-linux/nfsmount.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/nfsmount.c')
-rw-r--r--util-linux/nfsmount.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c
index 705975d29..e7d194f0f 100644
--- a/util-linux/nfsmount.c
+++ b/util-linux/nfsmount.c
@@ -26,10 +26,6 @@
26 */ 26 */
27 27
28#include "busybox.h" 28#include "busybox.h"
29#include <unistd.h>
30#include <string.h>
31#include <errno.h>
32#include <time.h>
33#include <sys/utsname.h> 29#include <sys/utsname.h>
34#undef TRUE 30#undef TRUE
35#undef FALSE 31#undef FALSE
@@ -391,7 +387,7 @@ int nfsmount(const char *spec, const char *node, int *flags,
391 } 387 }
392 sprintf(new_opts, "%s%saddr=%s", 388 sprintf(new_opts, "%s%saddr=%s",
393 old_opts, *old_opts ? "," : "", s); 389 old_opts, *old_opts ? "," : "", s);
394 *mount_opts = bb_xstrdup(new_opts); 390 *mount_opts = xstrdup(new_opts);
395 391
396 /* Set default options. 392 /* Set default options.
397 * rsize/wsize (and bsize, for ver >= 3) are left 0 in order to 393 * rsize/wsize (and bsize, for ver >= 3) are left 0 in order to
@@ -459,7 +455,7 @@ int nfsmount(const char *spec, const char *node, int *flags,
459 else if (!strcmp(opt, "mountport")) 455 else if (!strcmp(opt, "mountport"))
460 mountport = val; 456 mountport = val;
461 else if (!strcmp(opt, "mounthost")) 457 else if (!strcmp(opt, "mounthost"))
462 mounthost=bb_xstrndup(opteq+1, 458 mounthost=xstrndup(opteq+1,
463 strcspn(opteq+1," \t\n\r,")); 459 strcspn(opteq+1," \t\n\r,"));
464 else if (!strcmp(opt, "mountprog")) 460 else if (!strcmp(opt, "mountprog"))
465 mountprog = val; 461 mountprog = val;
@@ -729,7 +725,7 @@ int nfsmount(const char *spec, const char *node, int *flags,
729 if (!bg) 725 if (!bg)
730 goto fail; 726 goto fail;
731 if (!running_bg) { 727 if (!running_bg) {
732 prev_bg_host = bb_xstrdup(hostname); 728 prev_bg_host = xstrdup(hostname);
733 if (retry > 0) 729 if (retry > 0)
734 retval = EX_BG; 730 retval = EX_BG;
735 goto fail; 731 goto fail;