mirror of
https://github.com/UberGames/ioef.git
synced 2024-12-01 00:21:19 +00:00
Make newly-created prefpath permissions more sane.
This commit is contained in:
parent
a5980d56d9
commit
cf1bb85183
1 changed files with 3 additions and 3 deletions
|
@ -55,14 +55,14 @@ char *Sys_DefaultHomePath(void)
|
||||||
Q_strncpyz( homePath, p, sizeof( homePath ) );
|
Q_strncpyz( homePath, p, sizeof( homePath ) );
|
||||||
#ifdef MACOS_X
|
#ifdef MACOS_X
|
||||||
Q_strcat( homePath, sizeof( homePath ), "/Library" );
|
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" );
|
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" );
|
Q_strcat( homePath, sizeof( homePath ), "/Quake3" );
|
||||||
#else
|
#else
|
||||||
Q_strcat( homePath, sizeof( homePath ), "/.q3a" );
|
Q_strcat( homePath, sizeof( homePath ), "/.q3a" );
|
||||||
#endif
|
#endif
|
||||||
if( mkdir( homePath, 0777 ) )
|
if( mkdir( homePath, 0750 ) )
|
||||||
{
|
{
|
||||||
if( errno != EEXIST )
|
if( errno != EEXIST )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue