]> git.saurik.com Git - hfs.git/commitdiff
Have CreateFileByName() chmod 0755 instead of 0666.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 16 Dec 2013 12:46:11 +0000 (04:46 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 16 Dec 2013 12:46:11 +0000 (04:46 -0800)
fsck_hfs/dfalib/SRepair.c

index 5c579badd9c645dda40c4d8ef3cca2cdecef5f55..e7ed63311c12b1bdad2c0374ae7881d095071273 100644 (file)
@@ -5812,7 +5812,7 @@ OSErr CreateFileByName(SGlobPtr GPtr, UInt32 parentID, UInt16 fileType, u_char *
        }
 
        /* Build file record */
-       recordSize = BuildFileRec(fileType, 0666, nextCNID, isHFSPlus, &catRecord);
+       recordSize = BuildFileRec(fileType, 0755, nextCNID, isHFSPlus, &catRecord);
        if (recordSize == 0) {
 #if DEBUG_OVERLAP
                plog ("%s: Incorrect fileType\n", __FUNCTION__);