From a6895fd9cb5e575bbab49e38c623edc41f84733b Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 30 Jul 2007 20:41:21 +0000 Subject: [PATCH] Set GIDs concurrently, to avoid MacOS bug --- proc/proc-lib.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proc/proc-lib.pl b/proc/proc-lib.pl index 7e46f9fdd..e211df11e 100644 --- a/proc/proc-lib.pl +++ b/proc/proc-lib.pl @@ -96,12 +96,12 @@ return if ($module_info{'usermin'}); # already switched! if ($access{'uid'} < 0) { local @u = getpwnam($remote_user); @u || &error("Failed to find user $remote_user"); - $( = $u[3]; $) = "$u[3] $u[3]"; + ($(, $)) = ($u[3], "$u[3] $u[3]"); ($>, $<) = ($u[2], $u[2]); } elsif ($access{'uid'}) { local @u = getpwuid($access{'uid'}); - $( = $u[3]; $) = "$u[3] $u[3]"; + ($(, $)) = ($u[3], "$u[3] $u[3]"); ($>, $<) = ($u[2], $u[2]); } }