]> git.proxmox.com Git - proxmox-backup.git/commit - src/bin/pxar.rs
fix #2873: if --pattern is used, default to not extracting
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 30 Jul 2020 07:29:20 +0000 (09:29 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 30 Jul 2020 07:33:30 +0000 (09:33 +0200)
commitd44185c4a103588726065147a8708dbe014b0c02
tree582af339020dced1cb5bb4149201ea6ff5819361
parentd53fbe24741ed3bd920ee1c61bc163b1874b7c82
fix #2873: if --pattern is used, default to not extracting

The extraction algorithm has a state (bool) indicating
whether we're currently in a positive or negative match
which has always been initialized to true at the beginning,
but when the user provides a `--pattern` argument we need to
start out with a negative match.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/bin/proxmox-backup-client.rs
src/bin/pxar.rs
src/pxar/extract.rs