From 004a8cd66eae619a9db84e97dc9566e6075e27f2 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 30 May 2009 21:21: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 50def2a3b..ec2cda291 100644 --- 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'})); } }