Skip to content

Commit df2bb8c

Browse files
freebsd: fix nfs4 acl processing, fixes #8756
This only happened when: - using borg extract --numeric-ids - processing NFS4 ACLs It didn't affect POSIX ACL processing. This is rather old code, so it looks like nobody used that code or the bug was not reported. The bug was discovered by PyCharm's "Junie" AI. \o/
1 parent 3651d26 commit df2bb8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/borg/platform/freebsd.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ cdef _nfs4_use_stored_uid_gid(acl):
200200
if entry:
201201
if entry.startswith('user:') or entry.startswith('group:'):
202202
fields = entry.split(':')
203-
entries.append(':'.join(fields[0], fields[5], *fields[2:-1]))
203+
entries.append(':'.join([fields[0], fields[5]] + fields[2:-1]))
204204
else:
205205
entries.append(entry)
206206
return safe_encode('\n'.join(entries))

0 commit comments

Comments
 (0)