summaryrefslogtreecommitdiffstats
path: root/lib/libsmdb
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2004-07-08 05:24:48 +0000
committerkientzle <kientzle@FreeBSD.org>2004-07-08 05:24:48 +0000
commitf068f4ab35420553942096ba1e1265a9bd5f385a (patch)
treefb8e3315e62a931232a382f121398e886de51d3c /lib/libsmdb
parente3e493024dec3bde4f375b5e9253880b423771c0 (diff)
downloadFreeBSD-src-f068f4ab35420553942096ba1e1265a9bd5f385a.zip
FreeBSD-src-f068f4ab35420553942096ba1e1265a9bd5f385a.tar.gz
I think this is my fourth complete rewrite of the dir-creation
code. <whew!> This version handles all of the following edge cases: * Restoring explicit dirs with 000 permissions (star fails this test) * Restore of implicit or explicit dirs when umask=777 (gtar and star both fail this test) * Restoring dir paths containing "." and ".." components This version initially creates all dirs with permission 700 (ignoring umask), then does a post-extract "fixup" pass to set the correct permissions (which may or may not depend on umask, depending on the restore flags and whether it's an explicit or implicit dir). Permissions are restored depth-first so that permissions within non-writable dirs can be correctly restored. (The depth-sorting does correctly account for dirs with ".." components.)
Diffstat (limited to 'lib/libsmdb')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud