From 0763baadf95e4964a254311ea6e32f67108e0889 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 12 Mar 2002 03:30:19 +0000 Subject: 2002-03-11 Roland McGrath * ftpfs.c (parse_startup_opt): If given one argument with no :, use "/" as the remote root. --- ftpfs/ftpfs.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ftpfs/ftpfs.c') 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 + Copyright (C) 1997,98,2002 Free Software Foundation, Inc. + Written by Miles Bader 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'; -- cgit v1.2.3