From f65964ecfb0955dcbe78909559f2ce39c052f295 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 30 May 2009 21:24:19 +0000 Subject: [PATCH] Use switch_to_unix_user --- file/file-lib.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/file/file-lib.pl b/file/file-lib.pl index ec2cda291..b2c4c70c9 100644 --- a/file/file-lib.pl +++ b/file/file-lib.pl @@ -184,8 +184,7 @@ if (!$module_info{'usermin'} && $access{'uid'}) { @u || &error($text{'switch_euser'}); local @other = &other_groups($u[0]); &go_chroot(); - ($(, $)) = ($u[3], "$u[3] ".join(" ", $u[3], @other)); - ($>, $<) = ($u[2], $u[2]); + &switch_to_unix_user(\@u); umask(oct($access{'umask'})); } else {