Changeset 8847
Legend:
- Unmodified
- Added
- Removed
-
trunk/gtk/conf.c
r8673 r8847 58 58 gl_confdir = g_strdup( configDir ); 59 59 60 if( mkdir_p( gl_confdir, 0755 ) )60 if( gtr_mkdir_with_parents( gl_confdir, 0755 ) ) 61 61 return TRUE; 62 62 -
trunk/gtk/main.c
r8846 r8847 439 439 /* ensure the directories are created */ 440 440 if(( str = pref_string_get( PREF_KEY_DIR_WATCH ))) 441 mkdir_p( str, 0777 );441 gtr_mkdir_with_parents( str, 0777 ); 442 442 if(( str = pref_string_get( TR_PREFS_KEY_DOWNLOAD_DIR ))) 443 mkdir_p( str, 0777 );443 gtr_mkdir_with_parents( str, 0777 ); 444 444 445 445 /* initialize the libtransmission session */ -
trunk/gtk/util.c
r8846 r8847 8 8 * the Transmission project. 9 9 * 10 * $Id :$10 * $Id$ 11 11 */ 12 12 … … 198 198 199 199 int 200 mkdir_p( const char * path, 201 mode_t mode ) 200 gtr_mkdir_with_parents( const char * path, int mode ) 202 201 { 203 202 #if GLIB_CHECK_VERSION( 2, 8, 0 ) -
trunk/gtk/util.h
r8846 r8847 8 8 * the Transmission project. 9 9 * 10 * $Id :$10 * $Id$ 11 11 */ 12 12 … … 38 38 /* similar to asctime, but is utf8-clean */ 39 39 char* gtr_localtime2( char * buf, time_t time, size_t buflen ); 40 41 /* create a directory and any missing parent directories */42 int mkdir_p( const char *name, mode_t mode );43 40 44 41 /*** … … 79 76 /* GTK-related utilities */ 80 77 #ifdef GTK_MAJOR_VERSION 78 79 /* backwards-compatible wrapper around g_mkdir_with_parents() */ 80 int gtr_mkdir_with_parents( const char *name, int mode ); 81 81 82 82 /* backwards-compatible wrapper around gdk_threads_add_timeout_seconds() */
Note: See TracChangeset
for help on using the changeset viewer.