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

* commit '457197c50056216c1552e020998274a3bb249dd9':
  Only set permissions on dirs or files
diff --git a/VolumeManager.cpp b/VolumeManager.cpp
index 3a63a19..fe1ce8e 100644
--- a/VolumeManager.cpp
+++ b/VolumeManager.cpp
@@ -571,7 +571,7 @@
 
             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);