Changeset dfd442b
- Timestamp:
- 2008-06-29T23:45:11Z (16 years ago)
- Branches:
- master
- Children:
- 6a78c0e
- Parents:
- f5d1b31
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
storage_xml.c
rf5d1b31 rdfd442b 249 249 static void xml_init( void ) 250 250 { 251 if( ! g_file_test( global.conf->configdir, G_FILE_TEST_EXISTS ))251 if( g_access( global.conf->configdir, F_OK ) != 0 ) 252 252 log_message( LOGLVL_WARNING, "The configuration directory `%s' does not exist. Configuration won't be saved.", global.conf->configdir ); 253 else if( ! g_file_test( global.conf->configdir, G_FILE_TEST_EXISTS )||254 253 else if( g_access( global.conf->configdir, F_OK ) != 0 || 254 g_access( global.conf->configdir, W_OK ) != 0 ) 255 255 log_message( LOGLVL_WARNING, "Permission problem: Can't read/write from/to `%s'.", global.conf->configdir ); 256 256 } … … 379 379 g_free( path2 ); 380 380 381 if( !overwrite && g_ file_test( path, G_FILE_TEST_EXISTS ))381 if( !overwrite && g_access( path, F_OK ) == 0 ) 382 382 return STORAGE_ALREADY_EXISTS; 383 383
Note: See TracChangeset
for help on using the changeset viewer.