summaryrefslogtreecommitdiff
path: root/ftpfs/ftpfs.c
diff options
context:
space:
mode:
authorAlfred M. Szmidt <ams@gnu.org>2005-06-18 17:18:13 +0000
committerAlfred M. Szmidt <ams@gnu.org>2005-06-18 17:18:13 +0000
commitddeb9733fb4eccc2dc8bd36633db7b34a7ba3627 (patch)
tree02cee6969b96b34abff6e305436289f23d2e2daf /ftpfs/ftpfs.c
parente0dc9e1e71bf0a8ea96f517dc8f5dbf05aca2b94 (diff)
2005-06-14 Hugues Larrive <hugues.larrive@gmail.com>
* ftpfs.c (parse_startup_opt): User names may contain a @, so take the last @ of FTPFS_REMOTE_FS. * host.c (split_server_name): User names may contain a @, so take the last @ of P.
Diffstat (limited to 'ftpfs/ftpfs.c')
-rw-r--r--ftpfs/ftpfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftpfs/ftpfs.c b/ftpfs/ftpfs.c
index 492df79e..09c072d1 100644
--- a/ftpfs/ftpfs.c
+++ b/ftpfs/ftpfs.c
@@ -255,7 +255,7 @@ parse_startup_opt (int key, char *arg, struct argp_state *state)
{
int h_err; /* Host lookup error. */
error_t err;
- char *sep = strchr (ftpfs_remote_fs, '@');
+ char *sep = strrchr (ftpfs_remote_fs, '@');
if (sep)
/* FTPFS_REMOTE_FS includes a '@', which means that it's in