am 348c8aba: Only set permissions on dirs or files

* commit '348c8aba0d2df2996e0fe57900ef518c6aeb4b29':
  Only set permissions on dirs or files
This commit is contained in:
Kenny Root 2012-05-10 16:46:37 -07:00 committed by Android Git Automerger
commit 457197c500

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);