summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nfs/main.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/nfs/main.c b/nfs/main.c
index 271453a6..38e0124f 100644
--- a/nfs/main.c
+++ b/nfs/main.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1996 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997 Free Software Foundation, Inc.
Written by Michael I. Bushnell, p/BSG.
This file is part of the GNU Hurd.
@@ -224,9 +224,16 @@ netfs_append_args (char **argz, size_t *argz_len)
err = netfs_append_std_options (argz, argz_len);
if (! err)
- err = argz_add (argz, argz_len, remote_fs);
- if (! err)
- err = argz_add (argz, argz_len, host);
+ {
+ char *fs;
+ if (asprintf (&fs, "%s:%s", host, remote_fs))
+ {
+ err = argz_add (argz, argz_len, fs);
+ free (fs);
+ }
+ else
+ err = ENOMEM;
+ }
return err;
}