mirror of
https://github.com/transmission/transmission
synced 2024-12-23 16:24:02 +00:00
fix r12638 regression caused by the difference in return values from gtr_mkdir_with_parents() and g_mkdir_with_parents()
This commit is contained in:
parent
7554955eb8
commit
b7371264fb
1 changed files with 4 additions and 1 deletions
|
@ -55,8 +55,11 @@ cf_init( const char * configDir, char ** errstr )
|
|||
|
||||
gl_confdir = g_strdup( configDir );
|
||||
|
||||
if( g_file_test( gl_confdir, G_FILE_TEST_IS_DIR ) )
|
||||
return true;
|
||||
|
||||
if( g_mkdir_with_parents( gl_confdir, 0755 ) )
|
||||
return TRUE;
|
||||
return true;
|
||||
|
||||
if( errstr != NULL )
|
||||
*errstr = g_strdup_printf( _( "Couldn't create \"%1$s\": %2$s" ),
|
||||
|
|
Loading…
Reference in a new issue