Find last '@' in the user@site string, just in case the username has
authorWayne Davison <wayned@samba.org>
Tue, 20 Jan 2004 05:27:09 +0000 (05:27 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 20 Jan 2004 05:27:09 +0000 (05:27 +0000)
a '@' in it.

main.c

diff --git a/main.c b/main.c
index 87711c2..3e0705a 100644 (file)
--- 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;