summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2012-05-10 16:48:16 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-10 16:48:16 -0700
commitdc452c399dae789207978104a2f12d2e9c48ed03 (patch)
tree37e148e0ab176354898851020e5ac76af4c4ad13
parent7bffd4486dff76d61c45aa53a33be48ec50ae8b1 (diff)
parent457197c50056216c1552e020998274a3bb249dd9 (diff)
downloadsystem_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.cpp2
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);