umask fix
This commit is contained in:
@@ -74,7 +74,7 @@ RageFileObj *MakeFileObjDirect( CString sPath, int mode, int &err )
|
|||||||
int fd;
|
int fd;
|
||||||
if( mode & RageFile::READ )
|
if( mode & RageFile::READ )
|
||||||
{
|
{
|
||||||
fd = DoOpen( sPath, O_BINARY|O_RDONLY, 0644 );
|
fd = DoOpen( sPath, O_BINARY|O_RDONLY, 0666 );
|
||||||
|
|
||||||
/* XXX: Windows returns EACCES if we try to open a file on a CDROM that isn't
|
/* XXX: Windows returns EACCES if we try to open a file on a CDROM that isn't
|
||||||
* ready, instead of something like ENODEV. We want to return that case as
|
* ready, instead of something like ENODEV. We want to return that case as
|
||||||
@@ -89,7 +89,7 @@ RageFileObj *MakeFileObjDirect( CString sPath, int mode, int &err )
|
|||||||
out = MakeTempFilename(sPath);
|
out = MakeTempFilename(sPath);
|
||||||
|
|
||||||
/* Open a temporary file for writing. */
|
/* Open a temporary file for writing. */
|
||||||
fd = DoOpen( out, O_BINARY|O_WRONLY|O_CREAT|O_TRUNC, 0644 );
|
fd = DoOpen( out, O_BINARY|O_WRONLY|O_CREAT|O_TRUNC, 0666 );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( fd == -1 )
|
if( fd == -1 )
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ bool CreateDirectories( CString Path )
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if( DoMkdir(curpath, 0755) == 0 )
|
if( DoMkdir(curpath, 0777) == 0 )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* When creating a directory that already exists over Samba, Windows is
|
/* When creating a directory that already exists over Samba, Windows is
|
||||||
|
|||||||
Reference in New Issue
Block a user