diff options
author | 2000-12-16 09:53:57 +0000 | |
---|---|---|
committer | 2000-12-16 09:53:57 +0000 | |
commit | 2e6fedae177d981b1933c04853b1862036df74e2 (patch) | |
tree | 6abf421a3b8e441047382f21b9cb6490364aae4a /usr.bin/ssh/scp.c | |
parent | unused; from stevesk@pobox.com (diff) | |
download | wireguard-openbsd-2e6fedae177d981b1933c04853b1862036df74e2.tar.xz wireguard-openbsd-2e6fedae177d981b1933c04853b1862036df74e2.zip |
allow + in usernames; request from Florian.Weimer@RUS.Uni-Stuttgart.DE
Diffstat (limited to 'usr.bin/ssh/scp.c')
-rw-r--r-- | usr.bin/ssh/scp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c index a87d9ff66c7..2b1d2df5009 100644 --- a/usr.bin/ssh/scp.c +++ b/usr.bin/ssh/scp.c @@ -75,7 +75,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: scp.c,v 1.45 2000/12/16 09:39:57 markus Exp $"); +RCSID("$OpenBSD: scp.c,v 1.46 2000/12/16 09:53:57 markus Exp $"); #include "ssh.h" #include "xmalloc.h" @@ -1018,7 +1018,8 @@ okname(cp0) c = *cp; if (c & 0200) goto bad; - if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-' && c != '.') + if (!isalpha(c) && !isdigit(c) && + c != '_' && c != '-' && c != '.' && c != '+') goto bad; } while (*++cp); return (1); |