diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-12-23 02:14:51 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-12-23 02:14:51 +0000 |
commit | c276c1208e43ed4305d723004ddf602fbe99513b (patch) | |
tree | 4beac5b4f2c42126e646c09842f768027113fa63 /sftp.c | |
parent | acaac975cad5a45c14da53f1e61e5c6d133de85d (diff) | |
download | openssh-git-c276c1208e43ed4305d723004ddf602fbe99513b.tar.gz |
- markus@cvs.openbsd.org 2002/11/27 17:53:35
[scp.c sftp.c ssh.c]
allow usernames with embedded '@', e.g. scp user@vhost@realhost:file /tmp;
http://bugzilla.mindrot.org/show_bug.cgi?id=447; ok mouring@, millert@
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,7 +24,7 @@ #include "includes.h" -RCSID("$OpenBSD: sftp.c,v 1.31 2002/07/25 01:16:59 mouring Exp $"); +RCSID("$OpenBSD: sftp.c,v 1.32 2002/11/27 17:53:35 markus Exp $"); /* XXX: short-form remote directory listings (like 'ls -C') */ @@ -197,7 +197,7 @@ main(int argc, char **argv) file1 = cp; } - if ((host = strchr(userhost, '@')) == NULL) + if ((host = strrchr(userhost, '@')) == NULL) host = userhost; else { *host++ = '\0'; |