]> 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>
Thu, 13 Jun 2019 09:55:18 +0000 (11:55 +0200)
commit5c0720d6c99754540c23cc02092902ef89f3a890
tree586905ff83c16bbc4c9ecca5510da2fb80c3d050
parent11efb06659eb0a6cdfa56412d7898fa0c62983d8
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>
PVE/API2/Storage/Status.pm