From 6a07898f489668d320e816f76db5485550416205 Mon Sep 17 00:00:00 2001 From: sturm <> Date: Fri, 28 Nov 2003 07:32:12 +0000 Subject: [PATCH] fix regexp for group names ok millert@ --- src/etc/security | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/security b/src/etc/security index db773bee..225e057b 100644 --- a/src/etc/security +++ b/src/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);