am 457197c5: am 348c8aba: Only set permissions on dirs or files

* commit '457197c50056216c1552e020998274a3bb249dd9':
  Only set permissions on dirs or files
This commit is contained in:
Kenny Root 2012-05-10 16:48:16 -07:00 committed by Android Git Automerger
commit dc452c399d

View file

@ -571,7 +571,7 @@ int VolumeManager::fixupAsecPermissions(const char *id, gid_t gid, const char* f
if (ftsent->fts_info & FTS_D) {
result |= fchmod(fd, 0711);
} else {
} else if (ftsent->fts_info & FTS_F) {
result |= fchmod(fd, privateFile ? 0640 : 0644);
}
close(fd);