projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f49b98
)
Use &switch_to_unix_user
author
Jamie Cameron
<jcameron@webmin.com>
Sat, 30 May 2009 21:21:19 +0000
(21:21 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Sat, 30 May 2009 21:21:19 +0000
(21:21 +0000)
file/file-lib.pl
patch
|
blob
|
history
diff --git
a/file/file-lib.pl
b/file/file-lib.pl
index
50def2a
..
ec2cda2
100644
(file)
--- a/
file/file-lib.pl
+++ b/
file/file-lib.pl
@@
-169,8
+169,7
@@
local @u = $user ? getpwnam($user) :
getpwuid($access{'uid'});
if ($u[2]) {
@u || &error($text{'switch_euser'});
- ($(, $)) = ($u[3], "$u[3] ".join(" ", $u[3], &other_groups($u[0])));
- ($>, $<) = ($u[2], $u[2]);
+ &switch_to_unix_user(\@u);
umask(oct($access{'umask'}));
}
}