diff options
author | Kenny Root <kroot@google.com> | 2012-05-10 16:48:16 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-05-10 16:48:16 -0700 |
commit | dc452c399dae789207978104a2f12d2e9c48ed03 (patch) | |
tree | 37e148e0ab176354898851020e5ac76af4c4ad13 | |
parent | 7bffd4486dff76d61c45aa53a33be48ec50ae8b1 (diff) | |
parent | 457197c50056216c1552e020998274a3bb249dd9 (diff) | |
download | system_vold-dc452c399dae789207978104a2f12d2e9c48ed03.zip system_vold-dc452c399dae789207978104a2f12d2e9c48ed03.tar.gz system_vold-dc452c399dae789207978104a2f12d2e9c48ed03.tar.bz2 |
am 457197c5: am 348c8aba: Only set permissions on dirs or files
* commit '457197c50056216c1552e020998274a3bb249dd9':
Only set permissions on dirs or files
-rw-r--r-- | VolumeManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/VolumeManager.cpp b/VolumeManager.cpp index 3a63a19..fe1ce8e 100644 --- a/VolumeManager.cpp +++ b/VolumeManager.cpp @@ -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); |