mirror of
https://github.com/restic/restic.git
synced 2025-08-27 09:50:24 +00:00
convert uid/gid -1 to 0 only in 32-bit tar dump
Only for a 32-bit build of restic, convert a uid or gid value of -1 to 0.
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
Bugfix: fix restic dump of tar file with 32-bit binary
|
||||
|
||||
In restic up to 0.14.0, the restic dump from a 32-bit binary of a
|
||||
snapshot of standard input that was created in Windows has as a
|
||||
result a tar file whose content has a negative uid and gid. As a
|
||||
result, gnu tar exits with failure status whenever it tries to
|
||||
access such a tar file. With this fix, the tar file that is now
|
||||
dumped from a 32-bit binary has content with non-negative uid and
|
||||
gid.
|
||||
When using a 32-bit build of restic, the `restic dump` command could in some
|
||||
cases create tar files containing negative uid and gid. These files cannot be
|
||||
read by gnu tar. This corner case especially applies to backups from stdin on Windows.
|
||||
We have changed the dump command to create valid tar files in this case.
|
||||
|
||||
https://github.com/restic/restic/issues/4103
|
||||
https://github.com/restic/restic/pull/4104
|
||||
|
Reference in New Issue
Block a user