Changeset 9421 for trunk/libtransmission/torrent.c
- Timestamp:
- Oct 27, 2009, 11:00:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/torrent.c
r9404 r9421 2419 2419 if( do_move ) 2420 2420 { 2421 tr_bool renamed = FALSE; 2421 2422 errno = 0; 2422 2423 tr_torinf( tor, "moving \"%s\" to \"%s\"", oldpath, newpath ); 2423 if( rename( oldpath, newpath ) ) 2424 if( tr_moveFile( oldpath, newpath, &renamed ) ) 2425 { 2426 err = TRUE; 2427 tr_torerr( tor, "error moving \"%s\" to \"%s\": %s", 2428 oldpath, newpath, tr_strerror( errno ) ); 2429 } 2430 else if( !renamed ) 2424 2431 { 2425 2432 verify_needed = TRUE; 2426 if( tr_moveFile( oldpath, newpath ) )2427 {2428 err = TRUE;2429 tr_torerr( tor, "error moving \"%s\" to \"%s\": %s",2430 oldpath, newpath, tr_strerror( errno ) );2431 }2432 2433 } 2433 2434 } … … 2455 2456 if( verify_needed ) 2456 2457 tr_torrentVerify( tor ); 2458 else if( tor->startAfterVerify ) { 2459 tor->startAfterVerify = FALSE; 2460 tr_torrentStart( tor ); 2461 } 2457 2462 } 2458 2463 }
Note: See TracChangeset
for help on using the changeset viewer.