file creation fix

This commit is contained in:
Glenn Maynard
2003-12-04 08:44:54 +00:00
parent b651e4f002
commit 4717e7619e
+2 -1
View File
@@ -50,7 +50,8 @@ RageFileObj *RageFileDriverDirect::Open( CString sPath, RageFile::OpenMode mode,
flags |= O_RDONLY;
else
flags |= O_WRONLY|O_CREAT|O_TRUNC;
int fd = open( root + sPath, flags );
int fd = open( root + sPath, flags, 0644 );
if( fd == -1 )
{
err = errno;