Changeset 298 for branches/save_torrent_files/libtransmission/inout.c
- Timestamp:
- Jun 8, 2006, 6:42:15 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/save_torrent_files/libtransmission/inout.c
r289 r298 206 206 207 207 int i; 208 char * path ;208 char * path, * p; 209 209 struct stat sb; 210 210 int file; … … 217 217 218 218 /* Create folders */ 219 if( tr_mkdir( path ) ) 220 { 221 free( path ); 222 return 1; 219 if( NULL != ( p = strrchr( path, '/' ) ) ) 220 { 221 *p = '\0'; 222 if( tr_mkdir( path ) ) 223 { 224 free( path ); 225 return 1; 226 } 227 *p = '/'; 223 228 } 224 229
Note: See TracChangeset
for help on using the changeset viewer.