From fa3b018e1f91129b1a64a7c0a0af39e4ff30d561 Mon Sep 17 00:00:00 2001 From: Eric Petit Date: Mon, 24 Apr 2006 16:42:38 +0000 Subject: [PATCH] Ooops --- libtransmission/inout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtransmission/inout.c b/libtransmission/inout.c index 5d37d6721..a635f653e 100644 --- a/libtransmission/inout.c +++ b/libtransmission/inout.c @@ -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 ) );