1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +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:
Jordan Lee 2011-08-08 16:56:36 +00:00
parent 7554955eb8
commit b7371264fb

View file

@ -55,8 +55,11 @@ cf_init( const char * configDir, char ** errstr )
gl_confdir = g_strdup( configDir ); 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 ) ) if( g_mkdir_with_parents( gl_confdir, 0755 ) )
return TRUE; return true;
if( errstr != NULL ) if( errstr != NULL )
*errstr = g_strdup_printf( _( "Couldn't create \"%1$s\": %2$s" ), *errstr = g_strdup_printf( _( "Couldn't create \"%1$s\": %2$s" ),