diff options
author | pirzyk <pirzyk@FreeBSD.org> | 2001-05-30 16:19:13 +0000 |
---|---|---|
committer | pirzyk <pirzyk@FreeBSD.org> | 2001-05-30 16:19:13 +0000 |
commit | c8969dd00c5ee1c25c896be1e3904c0b31f7106c (patch) | |
tree | 74f02322124b489a3f75776d8c531ae2042b165d /bin/rcp/util.c | |
parent | 39c721b4d07fd21a8cecec9fb4fb7d8c30e8626a (diff) | |
download | FreeBSD-src-c8969dd00c5ee1c25c896be1e3904c0b31f7106c.zip FreeBSD-src-c8969dd00c5ee1c25c896be1e3904c0b31f7106c.tar.gz |
Fixed two bugs, first not allowing '.' as a valid login name character
in okname() in util.c and second, returning != 0 when you do have an
error from okname in two places in rcp.c.
Thanks to Garrett for the POSIX defintion of valid login and group names.
PR: bin/25757
MFC after: 3 weeks
Diffstat (limited to 'bin/rcp/util.c')
-rw-r--r-- | bin/rcp/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/rcp/util.c b/bin/rcp/util.c index a8ba4c0..55c474f 100644 --- a/bin/rcp/util.c +++ b/bin/rcp/util.c @@ -98,7 +98,7 @@ 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); |