1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-03 05:35:58 +00:00

export-tar: for items w/o uid/gid, default to 0/0, see #7249

This commit is contained in:
Thomas Waldmann 2023-01-15 01:57:19 +01:00
parent ff545033e3
commit 18898d68f0
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -132,8 +132,8 @@ def item_to_tarinfo(item, original_path):
tarinfo.name = item.path
tarinfo.mtime = item.mtime / 1e9
tarinfo.mode = stat.S_IMODE(item.mode)
tarinfo.uid = item.uid
tarinfo.gid = item.gid
tarinfo.uid = item.get("uid", 0)
tarinfo.gid = item.get("gid", 0)
tarinfo.uname = item.get("user", "")
tarinfo.gname = item.get("group", "")
# The linkname in tar has 2 uses: