diff options
author | Roland McGrath <roland@gnu.org> | 2002-03-12 03:30:19 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-03-12 03:30:19 +0000 |
commit | 0763baadf95e4964a254311ea6e32f67108e0889 (patch) | |
tree | cd903ad28a88ac4eb50561ca7d282c8fcc69c8ef /ftpfs | |
parent | 659f0c68310816a4b9c96d8f6cbf432a636b249b (diff) |
2002-03-11 Roland McGrath <roland@frob.com>
* ftpfs.c (parse_startup_opt): If given one argument with no :,
use "/" as the remote root.
Diffstat (limited to 'ftpfs')
-rw-r--r-- | ftpfs/ftpfs.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ftpfs/ftpfs.c b/ftpfs/ftpfs.c index 63377021..4efb5ffb 100644 --- a/ftpfs/ftpfs.c +++ b/ftpfs/ftpfs.c @@ -1,7 +1,7 @@ /* Ftp filesystem - Copyright (C) 1997, 1998 Free Software Foundation, Inc. - Written by Miles Bader <miles@gnu.ai.mit.edu> + Copyright (C) 1997,98,2002 Free Software Foundation, Inc. + Written by Miles Bader <miles@gnu.org> This file is part of the GNU Hurd. The GNU Hurd is free software; you can redistribute it and/or @@ -261,9 +261,10 @@ parse_startup_opt (int key, char *arg, struct argp_state *state) sep = strchr (ftpfs_remote_fs, ':'); if (! sep) - argp_error (state, "%s: No server specified", ftpfs_remote_fs); - - ftpfs_remote_root = sep + 1; + /* We have just a host name, so treat it as "HOST:/". */ + ftpfs_remote_root = "/"; + else + ftpfs_remote_root = sep + 1; /* Lookup the ftp server (the part before the `:'). */ *sep = '\0'; |