aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-09-14 23:46:44 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-09-14 23:46:44 +0000
commitd46c1e92e5dd3c2a1d071c3dd8fb0d4bb68a2e3a (patch)
tree411803698f9abb5ae026b9653f86d3d23875f47e /code
parent76afc50977ba46b779f79074d2a69b9999df30b1 (diff)
downloadioquake3-aero-d46c1e92e5dd3c2a1d071c3dd8fb0d4bb68a2e3a.tar.gz
ioquake3-aero-d46c1e92e5dd3c2a1d071c3dd8fb0d4bb68a2e3a.zip
Make newly-created prefpath permissions more sane.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1598 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r--code/sys/sys_unix.c6
1 files changed, 3 insertions, 3 deletions
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 )
{