]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
restore: fix restore of NFS4 ACLs
authorChuck Silvers <chs@FreeBSD.org>
Mon, 12 Dec 2022 16:14:17 +0000 (08:14 -0800)
committerChuck Silvers <chs@FreeBSD.org>
Mon, 12 Dec 2022 16:19:51 +0000 (08:19 -0800)
commit9dda00df7e8f9279a43d92758df6a7e10a9aed95
treef08ce4dc085d3b8178da41a6512ad805f5e5333a
parent86edb11e7491e657e6c75ef6814867021665c377
restore: fix restore of NFS4 ACLs

Changing the mode bits on a file with an NFS4 ACL results in the
NFS4 ACL being replaced by one matching the new mode bits being set,
so when restoring a file with an NFS4 ACL, set the owner/group/mode first
and then set the NFS4 ACL, so that setting the mode does not throw away
the ACL that we just set.

Reviewed by: mckusick
Differential Revision:  https://reviews.freebsd.org/D37618
sbin/restore/dirs.c
sbin/restore/tape.c