diff options
author | Wayne Davison <wayned@samba.org> | 2005-03-01 03:39:32 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2005-03-01 03:39:32 +0000 |
commit | b31c92edcc11995daa5c90ec280010a1e2c5b64d (patch) | |
tree | 75bcfb9209e4be4e14808c3a1539d2301c1846cd /socket.c | |
parent | 08b018304fb35c1d06e33bd660b00aadcc4b2c78 (diff) | |
download | rsync-b31c92edcc11995daa5c90ec280010a1e2c5b64d.tar.gz rsync-b31c92edcc11995daa5c90ec280010a1e2c5b64d.tar.bz2 rsync-b31c92edcc11995daa5c90ec280010a1e2c5b64d.zip |
- Look for last '@' in a user@host spec.
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -198,7 +198,7 @@ int open_socket_out(char *host, int port, const char *bind_address, strlcpy(buffer, h, sizeof buffer); /* Is the USER:PASS@ prefix present? */ - if ((cp = strchr(buffer, '@')) != NULL) { + if ((cp = strrchr(buffer, '@')) != NULL) { *cp++ = '\0'; /* The remainder is the HOST:PORT part. */ h = cp; |