From 07281f8b5ecd0f61df5a1c4f78bb5d383c147faa Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 3 Apr 2019 09:52:54 +0200 Subject: spamassassin-courier: update AuthCourier.pm --- spamassassin-courier/AuthCourier.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'spamassassin-courier/AuthCourier.pm') diff --git a/spamassassin-courier/AuthCourier.pm b/spamassassin-courier/AuthCourier.pm index cadd660e..a9e136ea 100644 --- a/spamassassin-courier/AuthCourier.pm +++ b/spamassassin-courier/AuthCourier.pm @@ -76,13 +76,16 @@ sub getpwnam { # it's moral equivalent until Sam patches these as per my request... my $uid = $results{'UID'} || CORE::getpwnam($name); + # the same seems to be true for the GID + my $gid = $results{'GID'} || CORE::getgrnam($name); + # stop some naf 'uninitialized' errors ... return wantarray ? ('','','','','','','') : undef unless $uid; # uid 0 = root !!! return wantarray ? ( $results{'USERNAME'}, $results{'PASSWD'}, int($uid), - int($results{'GID'}), + int($gid), $results{'QUOTA'}, $results{'COMMENT'}, $results{'GCOS'}, -- cgit v1.2.3-54-g00ecf