summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-06-13 15:55:58 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-06-13 15:55:58 +0000
commit57776938a6049616a5db902a2be841c1575c4fb4 (patch)
treec396112b10838c6eb48bde2ea24419313912dd75 /etc
parent403c0a2cc8b35ec8668f9141286caa54dceabfd6 (diff)
Add dot ('.') in usernames too for consistency with adduser/useradd.
Noted by Brian Poole
Diffstat (limited to 'etc')
-rw-r--r--etc/security4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/security b/etc/security
index 9b6f63c2b1f..dbed71c740c 100644
--- a/etc/security
+++ b/etc/security
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: security,v 1.57 2003/06/12 19:11:57 millert Exp $
+# $OpenBSD: security,v 1.58 2003/06/13 15:55:57 millert Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93
#
@@ -31,7 +31,7 @@ awk -F: '{
next;
if ($1 == "")
printf("Line %d has an empty login field:\n%s\n", NR, $0);
- else if ($1 !~ /^[A-Za-z0-9_][A-Za-z0-9_-]*\$?$/)
+ else if ($1 !~ /^[A-Za-z0-9_][A-Za-z0-9_-\.]*\$?$/)
printf("Login %s has non-alphanumeric characters.\n", $1);
if (length($1) > 31)
printf("Login %s has more than 31 characters.\n", $1);