1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00
This commit is contained in:
Eric Petit 2006-04-24 16:42:38 +00:00
parent 94b14b6271
commit fa3b018e1f

View file

@ -214,7 +214,7 @@ static int createFiles( tr_io_t * io )
if( stat( path, &sb ) )
{
/* Folder doesn't exist yet */
mkdir( path, 0755 );
mkdir( path, 0777 );
}
else if( ( sb.st_mode & S_IFMT ) != S_IFDIR )
{
@ -230,7 +230,7 @@ static int createFiles( tr_io_t * io )
if( stat( path, &sb ) )
{
/* 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,
strerror( errno ) );