]> git.proxmox.com Git - proxmox-backup.git/commit
pxar: encoder: warn on lacking read permissions instead of fail.
authorChristian Ebner <c.ebner@proxmox.com>
Wed, 8 Jan 2020 14:14:44 +0000 (15:14 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 9 Jan 2020 09:41:19 +0000 (10:41 +0100)
commitecbc62261cf637eb2d4cce00891d0b43698ba545
tree24e3e848d8f62d57808e92e8440a878ff03d3bb2
parent88cee60bad70c3f9ab7a29c63c6846ac9797064e
pxar: encoder: warn on lacking read permissions instead of fail.

If during creation of the archive, files/dirs with lacking read permissions are
encountered, the user is displayed a warning and the archive is created without
including the file/dir.
Previously this resulted in an error and the archive creation failed.

In order to implement this also for the .pxarexclude files, the Error type of
MatchPattern::from_file() and MatchPattern::from_line() was adopted accordingly.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
TODO.rst
src/pxar/encoder.rs
src/pxar/match_pattern.rs