cvs commit: src/lib/libarchive archive_write_disk.c
kientzle 2008-07-05 01:48:33 UTC
FreeBSD src repository
SVN rev 180270 on 2008-07-05 01:48:33Z by kientzle
When ARCHIVE_EXTRACT_PERM is requested (e.g., by "tar -p"), always
schedule a chmod() fixup for directories. In particular, this fixes
sgid handling on systems where the sgid bit is inherited from the
parent directory (which means that the actual mode of the dir
does not match the mode used in the mkdir() system call.
It may be possible to tighten this condition a bit. In
working through this, I also found a few other places where
it looks like we can avoid a redundant syscall or two. I've
commented those here but not yet tried to address them.
Revision Changes Path
1.28 +9 -5 src/lib/libarchive/archive_write_disk.c
Received on Sat Jul 05 2008 - 01:48:49 UTC