Default ACL rules can be set on directories so that files and
directories created in them get the ACLs automatically.
The goal of this commit is to properly handle a rare case where an
application path is not a directory but a file.
Change-Id: Iac20c15e689b23486966649f2dc2222614942743
* that.
* - Default ACL rules will be applied from the parent directory.
*/
- if (m_transmute && ftsent->fts_level == 0) {
+ if (m_transmute && ftsent->fts_level == 0 && ftsent->fts_info == FTS_D) {
// need to re-read the mode after ACL application above
struct stat statbuf;
if (0 != stat(ftsent->fts_path, &statbuf))