From: Dietmar Maurer Date: Thu, 27 Oct 2011 09:13:23 +0000 (+0200) Subject: fix bug #23: add gid parameter to chown call X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=2b8e0f12c6c07e959362a48c89d498dac07e04a3 fix bug #23: add gid parameter to chown call --- diff --git a/data/PVE/Tools.pm b/data/PVE/Tools.pm index 0324943..b991ba5 100644 --- a/data/PVE/Tools.pm +++ b/data/PVE/Tools.pm @@ -620,7 +620,7 @@ sub upid_open { my $outfh = IO::File->new ($filename, O_WRONLY|O_CREAT|O_EXCL, $perm) || die "unable to create output file '$filename' - $!\n"; - chown $wwwid, $outfh; + chown $wwwid, -1, $outfh; return $outfh; };