From: Wayne Davison Date: Tue, 20 Jan 2004 05:27:09 +0000 (+0000) Subject: Find last '@' in the user@site string, just in case the username has X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/6fc048f438aeba4956a1fae1014cf85603dcab4e?hp=5d2a70713930e6c60788c728c8c6ae32f280ad84 Find last '@' in the user@site string, just in case the username has a '@' in it. --- diff --git a/main.c b/main.c index 87711c29..3e0705a0 100644 --- a/main.c +++ b/main.c @@ -819,7 +819,7 @@ static int start_client(int argc, char *argv[]) } if (shell_machine) { - p = strchr(shell_machine,'@'); + p = strrchr(shell_machine,'@'); if (p) { *p = 0; shell_user = shell_machine;