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:
parent
ff545033e3
commit
18898d68f0
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue