]> git.proxmox.com Git - proxmox-backup.git/commit
pxar: .pxarexclude: absolute paths and byte based paths
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 15 Jul 2020 09:53:26 +0000 (11:53 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 15 Jul 2020 09:55:48 +0000 (11:55 +0200)
commitb25deec0bef789ba5f14ae5c75f7279725cbd442
tree3e20ce1ae64550be0b8b18a3d22ce7ab5e6bd3d2
parentcdf1da28724d711393a886597174956b7b86d03c
pxar: .pxarexclude: absolute paths and byte based paths

Change the .pxarexclude parser to byte based parsing with
`.split(b'\n')` instead of `.lines()`, to not panic on
non-utf8 paths.

Specially deal with absolute paths by prefixing them with
the current directory.

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