]> git.proxmox.com Git - pve-container.git/commit
pct: fix edge case for 'pct push' with root uid/gid
authorOguz Bektas <o.bektas@proxmox.com>
Tue, 6 Apr 2021 11:56:16 +0000 (13:56 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 6 Apr 2021 13:19:59 +0000 (15:19 +0200)
commitd7c03854551bf606568ea3c4b741ab652ff948a7
treedeeba484f8986bf7d81a6b4032353b74abad6097
parent7790ecf67598ab6bf98787730f3d450e1a8e089c
pct: fix edge case for 'pct push' with root uid/gid

we should check if the variable is defined in the end (because root
uid:gid is 0:0, this causes perl to get confused and die, eventhough the
uid:gid was obtained correctly)

reported here:
https://forum.proxmox.com/threads/pct-push-fails-to-get-uid-gid.87065/

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/CLI/pct.pm