projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4b3339
)
Use &switch_to_unix_user
author
Jamie Cameron
<jcameron@webmin.com>
Sat, 30 May 2009 21:19:50 +0000
(21:19 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Sat, 30 May 2009 21:19:50 +0000
(21:19 +0000)
chooser.cgi
patch
|
blob
|
history
diff --git
a/chooser.cgi
b/chooser.cgi
index
7972216
..
7a14173
100755
(executable)
--- a/
chooser.cgi
+++ b/
chooser.cgi
@@
-40,10
+40,7
@@
if (&supports_users()) {
$fileunix = $access{'fileunix'} || $remote_user;
@uinfo = getpwnam($fileunix);
if (@uinfo) {
- ($(, $)) = ( $uinfo[3],
- "$uinfo[3] ".join(" ", $uinfo[3],
- &other_groups($uinfo[0])) );
- ($>, $<) = ( $uinfo[2], $uinfo[2] );
+ &switch_to_unix_user(\@uinfo);
}
}
}