Another USER-WRN bad 'USER@' dest

"Roloff, Dirk" <[email protected]> Mon, 3 Feb 2003 16:47:32 +0100
Newsgroups gmane.linux.suse.proxy-suite
Message-ID <[email protected]>
------ =_NextPart_001_01C2CB9B.92BF7CEC
Content-Type: text/plain


Dear list,

we are using the ftp-proxy (1.7) for long time and it's running fine.

now i had to established a connection to a ftp-server with the following
parameters. 

User: user@system			(looks like there is another
proxy we had to talk to)
Server: ftp.somewhere.de

so i do a connect to user@[email protected]

the proxy splits this at the _first_ at-sign and of cause
[email protected] is not a valid server name. This looks like we
can not cascade more then one proxy in a row.

My questions: Is this problem known and fixed in a later version fe. 1.9
- I had a quick look and it dosen't look like but i didn't try it yet.

If it is not fixed now - i would patch it to search the last at-sign in
the username i think its in
ftp-cmds.c line 523
if(config_bool(NULL, "AllowMagicUser", 0) != 0 &&
           (p = config_str(NULL, "UseMagicChar", "@")) &&
<           (p = strchr(arg, *p)) != NULL)
>           (p = strrchr(arg, *p)) != NULL)

change strchr() to strrchr() to find the last @

what do you think about this ?

bye 
Dirk Roloff


------ =_NextPart_001_01C2CB9B.92BF7CEC--