From cf1bb8518394ff909280a4f0caf93aa3d6603595 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 14 Sep 2009 23:46:44 +0000 Subject: [PATCH] Make newly-created prefpath permissions more sane. --- code/sys/sys_unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/sys/sys_unix.c b/code/sys/sys_unix.c index f1a18ab9..470c89fd 100644 --- a/code/sys/sys_unix.c +++ b/code/sys/sys_unix.c @@ -55,14 +55,14 @@ char *Sys_DefaultHomePath(void) Q_strncpyz( homePath, p, sizeof( homePath ) ); #ifdef MACOS_X Q_strcat( homePath, sizeof( homePath ), "/Library" ); - mkdir( homePath, 0777 ); /* just in case. */ + mkdir( homePath, 0750 ); /* just in case. */ Q_strcat( homePath, sizeof( homePath ), "/Application Support" ); - mkdir( homePath, 0777 ); /* just in case. */ + mkdir( homePath, 0750 ); /* just in case. */ Q_strcat( homePath, sizeof( homePath ), "/Quake3" ); #else Q_strcat( homePath, sizeof( homePath ), "/.q3a" ); #endif - if( mkdir( homePath, 0777 ) ) + if( mkdir( homePath, 0750 ) ) { if( errno != EEXIST ) {