From: Dietmar Maurer Date: Wed, 26 Sep 2012 11:18:19 +0000 (+0200) Subject: fix run_command: restore umask correctly X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=eb9e24df41de7c3c80ab0df8422f0b88b8c834de fix run_command: restore umask correctly --- diff --git a/Makefile b/Makefile index ffdb965..ad670b8 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ RELEASE=2.2 VERSION=1.0 -PKGREL=32 +PKGREL=33 PACKAGE=libpve-common-perl diff --git a/data/PVE/Tools.pm b/data/PVE/Tools.pm index 403249b..4f62cd7 100644 --- a/data/PVE/Tools.pm +++ b/data/PVE/Tools.pm @@ -230,7 +230,7 @@ sub run_command { 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') { diff --git a/debian/changelog b/debian/changelog index 908f944..c8bf6d0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libpve-common-perl (1.0-33) unstable; urgency=low + + * fix run_command: restore umask correctly + + -- Proxmox Support Team Wed, 26 Sep 2012 13:16:22 +0200 + libpve-common-perl (1.0-32) unstable; urgency=low * fix typo in error message