From 080ec22ae9090fe89a4eacf3fe732f3282eb87b8 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Wed, 2 Jun 2010 10:48:28 +0530 Subject: [PATCH] compile: kill spurious "user ... not in config" warnings this happens when users are given rights to a repo via a groupname, and GL_BIG_CONFIG is in effect --- src/gl-compile-conf | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/gl-compile-conf b/src/gl-compile-conf index f9b5786..334259e 100755 --- a/src/gl-compile-conf +++ b/src/gl-compile-conf @@ -267,7 +267,15 @@ sub parse_conf_file } for my $user (@users) { - $user_list{$user}++; # only to catch lint, see later + # lint check, to catch pubkey/username typos + if ($user =~ /^@/ and $user ne '@all') { + # this is a usergroup, not a normal user; happens with GL_BIG_CONFIG + if (exists $groups{$user}) { + $user_list{$_}++ for keys %{ $groups{$user} }; + } + } else { + $user_list{$user}++; + } # for 1st level check (see faq/tips doc) $repos{$repo}{C}{$user} = 1, next if $perms eq 'C';