Changes in / [d179921d:f9dbc99]
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
bitlbee.h
rd179921d rf9dbc99 96 96 #define g_main_quit __PLEASE_USE_B_MAIN_QUIT__ 97 97 98 #ifndef F_OK 99 #define F_OK 0 100 #endif 101 98 102 #ifndef G_GNUC_MALLOC 99 103 /* Doesn't exist in GLib <=2.4 while everything else in BitlBee should -
storage_xml.c
rd179921d rf9dbc99 29 29 #include "arc.h" 30 30 #include "md5.h" 31 #include <glib/gstdio.h>32 31 33 32 typedef enum … … 244 243 static void xml_init( void ) 245 244 { 246 if( ! g_file_test( global.conf->configdir, G_FILE_TEST_EXISTS ))245 if( access( global.conf->configdir, F_OK ) != 0 ) 247 246 log_message( LOGLVL_WARNING, "The configuration directory `%s' does not exist. Configuration won't be saved.", global.conf->configdir ); 248 else if( ! g_file_test( global.conf->configdir, G_FILE_TEST_EXISTS ) || g_access( global.conf->configdir, W_OK ) != 0 )247 else if( access( global.conf->configdir, R_OK ) != 0 || access( global.conf->configdir, W_OK ) != 0 ) 249 248 log_message( LOGLVL_WARNING, "Permission problem: Can't read/write from/to `%s'.", global.conf->configdir ); 250 249 } … … 373 372 g_free( path2 ); 374 373 375 if( !overwrite && g_file_test( path, G_FILE_TEST_EXISTS ))374 if( !overwrite && access( path, F_OK ) != -1 ) 376 375 return STORAGE_ALREADY_EXISTS; 377 376
Note: See TracChangeset
for help on using the changeset viewer.