]> git.proxmox.com Git - pve-common.git/commitdiff
fix bug #23: add gid parameter to chown call
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 27 Oct 2011 09:13:23 +0000 (11:13 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 27 Oct 2011 09:13:23 +0000 (11:13 +0200)
data/PVE/Tools.pm

index 03249439d72dd7da7a859dacf37ab70138097ae6..b991ba5afef2a2592d6519fe05057f6d5fffbaf7 100644 (file)
@@ -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;
 };