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
1 changed files with 4 additions and 1 deletions

View File

@ -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" ),