From: Jay Freeman (saurik) Date: Mon, 16 Dec 2013 12:46:11 +0000 (-0800) Subject: Have CreateFileByName() chmod 0755 instead of 0666. X-Git-Url: https://git.saurik.com/hfs.git/commitdiff_plain/2359e0782316afc4e00bf71a4a4000adaad0538e?ds=inline Have CreateFileByName() chmod 0755 instead of 0666. --- diff --git a/fsck_hfs/dfalib/SRepair.c b/fsck_hfs/dfalib/SRepair.c index 5c579ba..e7ed633 100644 --- a/fsck_hfs/dfalib/SRepair.c +++ b/fsck_hfs/dfalib/SRepair.c @@ -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__);