K 10 svn:author V 8 kientzle K 8 svn:date V 27 2008-07-05T01:48:33.872338Z K 7 svn:log V 555 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. END