]> git.proxmox.com Git - pve-storage.git/commit
fix #1427: Set file mode on uploaded templates/ISOs
authorStefan Reiter <s.reiter@proxmox.com>
Thu, 13 Jun 2019 09:33:28 +0000 (11:33 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 14 Jun 2019 08:08:03 +0000 (10:08 +0200)
commitfcf1c573541942e83655505ff8c35fde99d65f48
tree5acebc0fc488618b461576c52a7ce18cbaf026ef
parent8bf85ccc734878a3a7aeb8b3483ebf0ad44c7994
fix #1427: Set file mode on uploaded templates/ISOs

simply chmod the temp file before copying to the "correct" permission
mode, where all users with access to the directory can read the file,
to mirror the behavior one gets for a apl_download call.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
(cherry picked from commit 5c0720d6c99754540c23cc02092902ef89f3a890)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Storage/Status.pm