]> git.proxmox.com Git - pve-common.git/commitdiff
fix run_command: restore umask correctly
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 26 Sep 2012 11:18:19 +0000 (13:18 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 26 Sep 2012 11:18:19 +0000 (13:18 +0200)
Makefile
data/PVE/Tools.pm
debian/changelog

index ffdb9654d0b844db27385ace30e70621ec4fe53c..ad670b85f50d254a3684b4570d4ffa06e7cea855 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 RELEASE=2.2
 
 VERSION=1.0
 RELEASE=2.2
 
 VERSION=1.0
-PKGREL=32
+PKGREL=33
 
 PACKAGE=libpve-common-perl
 
 
 PACKAGE=libpve-common-perl
 
index 403249b57577c643955e036695b88b6b8365a2d5..4f62cd7d2c137911a6241b33d605a09d357107c4 100644 (file)
@@ -230,7 +230,7 @@ sub run_command {
            if ($p eq 'timeout') {
                $timeout = $param{$p};
            } elsif ($p eq 'umask') {
            if ($p eq 'timeout') {
                $timeout = $param{$p};
            } elsif ($p eq 'umask') {
-               umask($param{$p});
+               $old_umask = umask($param{$p});
            } elsif ($p eq 'errmsg') {
                $errmsg = $param{$p};
            } elsif ($p eq 'input') {
            } elsif ($p eq 'errmsg') {
                $errmsg = $param{$p};
            } elsif ($p eq 'input') {
index 908f9447529762c211b2f0de88cfed6e6752f524..c8bf6d0a311acbd4d809a1b8b62f807bb0bf7add 100644 (file)
@@ -1,3 +1,9 @@
+libpve-common-perl (1.0-33) unstable; urgency=low
+
+  * fix run_command: restore umask correctly
+
+ -- Proxmox Support Team <support@proxmox.com>  Wed, 26 Sep 2012 13:16:22 +0200
+
 libpve-common-perl (1.0-32) unstable; urgency=low
 
   * fix typo in error message
 libpve-common-perl (1.0-32) unstable; urgency=low
 
   * fix typo in error message