mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
Ooops
This commit is contained in:
parent
94b14b6271
commit
fa3b018e1f
1 changed files with 2 additions and 2 deletions
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in a new issue