diff options
author | Nikolay Sturm <sturm@cvs.openbsd.org> | 2003-11-28 07:32:13 +0000 |
---|---|---|
committer | Nikolay Sturm <sturm@cvs.openbsd.org> | 2003-11-28 07:32:13 +0000 |
commit | 134a486ef9e2417eee26241e8c5d53d39f2457d4 (patch) | |
tree | 7230ad712ca8bd90f2957bc938a2d24457d7ed22 /etc/security | |
parent | 6ccd2ccce7759b3332af5f55909348c49b0ab3d7 (diff) |
fix regexp for group names
ok millert@
Diffstat (limited to 'etc/security')
-rw-r--r-- | etc/security | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/security b/etc/security index db773beef19..225e057bbbc 100644 --- a/etc/security +++ b/etc/security @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: security,v 1.64 2003/07/07 15:35:55 millert Exp $ +# $OpenBSD: security,v 1.65 2003/11/28 07:32:12 sturm Exp $ # from: @(#)security 8.1 (Berkeley) 6/9/93 # @@ -108,7 +108,7 @@ awk -F: '{ next; if (NF != 4) printf("Line %d has the wrong number of fields:\n%s\n", NR, $0); - if ($1 !~ /^[A-za-z0-9][A-za-z0-9_-]*$/) + if ($1 !~ /^[A-Za-z0-9_][A-Za-z0-9_\-\.]*$/) printf("Group %s has non-alphanumeric characters.\n", $1); if (length($1) > 31) printf("Group %s has more than 31 characters.\n", $1); |