diff options
author | Alfred M. Szmidt <ams@gnu.org> | 2005-06-18 17:18:13 +0000 |
---|---|---|
committer | Alfred M. Szmidt <ams@gnu.org> | 2005-06-18 17:18:13 +0000 |
commit | ddeb9733fb4eccc2dc8bd36633db7b34a7ba3627 (patch) | |
tree | 02cee6969b96b34abff6e305436289f23d2e2daf /ftpfs/host.c | |
parent | e0dc9e1e71bf0a8ea96f517dc8f5dbf05aca2b94 (diff) | |
download | hurd-ddeb9733fb4eccc2dc8bd36633db7b34a7ba3627.tar.gz hurd-ddeb9733fb4eccc2dc8bd36633db7b34a7ba3627.tar.bz2 hurd-ddeb9733fb4eccc2dc8bd36633db7b34a7ba3627.zip |
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/host.c')
-rw-r--r-- | ftpfs/host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftpfs/host.c b/ftpfs/host.c index a0703afe..cd6fd4c0 100644 --- a/ftpfs/host.c +++ b/ftpfs/host.c @@ -38,7 +38,7 @@ split_server_name (const char *server, char **host, char **user, char **passwd) /* Extract the hostname; syntax is either `HOST:...', `...@HOST', or just HOST if there are no user parameters specified. */ - sep = strchr (p, '@'); + sep = strrchr (p, '@'); if (sep) /* ...@HOST */ { |