diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2000-01-24 22:11:21 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2000-01-24 22:11:21 +0000 |
commit | e992f9ab13336a2a54fd81084c0badd0e4d27f36 (patch) | |
tree | fc6c402362498b6383e1d1292af8a1988d522705 /usr.bin | |
parent | 7b7338bb4cca4b226034da34b3e1ef79e382462e (diff) |
allow '.' in usernames; from jedgar@fxp.org
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/scp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c index efb838027cb..16ac0ebc483 100644 --- a/usr.bin/ssh/scp.c +++ b/usr.bin/ssh/scp.c @@ -45,7 +45,7 @@ */ #include "includes.h" -RCSID("$Id: scp.c,v 1.24 2000/01/04 16:57:16 markus Exp $"); +RCSID("$Id: scp.c,v 1.25 2000/01/24 22:11:20 markus Exp $"); #include "ssh.h" #include "xmalloc.h" @@ -1006,7 +1006,7 @@ run_err(const char *fmt,...) * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scp.c,v 1.24 2000/01/04 16:57:16 markus Exp $ + * $Id: scp.c,v 1.25 2000/01/24 22:11:20 markus Exp $ */ char * @@ -1060,12 +1060,12 @@ okname(cp0) c = *cp; if (c & 0200) goto bad; - if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-') + if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-' && c != '.') goto bad; } while (*++cp); return (1); -bad: fprintf(stderr, "%s: invalid user name", cp0); +bad: fprintf(stderr, "%s: invalid user name\n", cp0); return (0); } |