From d46c1e92e5dd3c2a1d071c3dd8fb0d4bb68a2e3a Mon Sep 17 00:00:00 2001 From: icculus Date: Mon, 14 Sep 2009 23:46:44 +0000 Subject: Make newly-created prefpath permissions more sane. git-svn-id: svn://svn.icculus.org/quake3/trunk@1598 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/sys/sys_unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'code') diff --git a/code/sys/sys_unix.c b/code/sys/sys_unix.c index f1a18ab..470c89f 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 ) { -- cgit v1.2.3