From ddeb9733fb4eccc2dc8bd36633db7b34a7ba3627 Mon Sep 17 00:00:00 2001 From: "Alfred M. Szmidt" Date: Sat, 18 Jun 2005 17:18:13 +0000 Subject: 2005-06-14 Hugues Larrive * 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. --- ftpfs/host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ftpfs/host.c') 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 */ { -- cgit v1.2.3