]> git.proxmox.com Git - proxmox-backup.git/commit - pbs-client/src/pxar/create.rs
pxar: only generate .pxarexclude-cli if there were CLI parameters
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 12 Nov 2020 09:03:52 +0000 (10:03 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 12 Nov 2020 10:18:08 +0000 (11:18 +0100)
commitfa4bcbcad02af4859b61074ced893ccab1424a77
tree70d4d6f995c07cd49f440387c31a82f7a62e01ab
parent189cdb7427eace2ddc05e7e1cda0f24d9abc2e2f
pxar: only generate .pxarexclude-cli if there were CLI parameters

previously a .pxarexclude entry in the root of the archive caused the file to
be generated as well, because the patterns are read before calling
generate_directory_file_list and within the function it wasn't possible to
distinguish between a pattern coming from the CLI and a pattern coming from
archive/root/.pxarexclude

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/pxar/create.rs