Set GIDs concurrently, to avoid MacOS bug

This commit is contained in:
Jamie Cameron
2007-07-30 20:41:21 +00:00
parent 95af1d3ba6
commit a6895fd9cb

View File

@@ -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]);
}
}