This commit is contained in:
Eric Petit 2006-04-24 16:42:38 +00:00
parent 94b14b6271
commit fa3b018e1f
1 changed files with 2 additions and 2 deletions

View File

@ -214,7 +214,7 @@ static int createFiles( tr_io_t * io )
if( stat( path, &sb ) ) if( stat( path, &sb ) )
{ {
/* Folder doesn't exist yet */ /* Folder doesn't exist yet */
mkdir( path, 0755 ); mkdir( path, 0777 );
} }
else if( ( sb.st_mode & S_IFMT ) != S_IFDIR ) else if( ( sb.st_mode & S_IFMT ) != S_IFDIR )
{ {
@ -230,7 +230,7 @@ static int createFiles( tr_io_t * io )
if( stat( path, &sb ) ) if( stat( path, &sb ) )
{ {
/* File doesn't exist yet */ /* File doesn't exist yet */
if( ( file = open( path, O_WRONLY|O_CREAT|O_TRUNC ) ) < 0 ) if( ( file = open( path, O_WRONLY|O_CREAT|O_TRUNC, 0666 ) ) < 0 )
{ {
tr_err( "Could not create `%s' (%s)", path, tr_err( "Could not create `%s' (%s)", path,
strerror( errno ) ); strerror( errno ) );