projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95af1d3
)
Set GIDs concurrently, to avoid MacOS bug
author
Jamie Cameron
<jcameron@webmin.com>
Mon, 30 Jul 2007 20:41:21 +0000
(20:41 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Mon, 30 Jul 2007 20:41:21 +0000
(20:41 +0000)
proc/proc-lib.pl
patch
|
blob
|
history
diff --git
a/proc/proc-lib.pl
b/proc/proc-lib.pl
index
7e46f9f
..
e211df1
100644
(file)
--- 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]);
}
}