Skip to content

Commit

Permalink
Make newly-created prefpath permissions more sane.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 14, 2009
1 parent a5980d5 commit cf1bb85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/sys/sys_unix.c
Expand Up @@ -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 )
{
Expand Down

0 comments on commit cf1bb85

Please sign in to comment.