From: Jordan Lee Date: Mon, 24 Jan 2011 06:07:06 +0000 (+0000) Subject: (trunk libT) torrent.c setLocation(): don't try to move a file if the source and... X-Git-Tag: 2.20b2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=125d2506cdd2a06ec584cace64e0f1468adc7f8f;p=transmission (trunk libT) torrent.c setLocation(): don't try to move a file if the source and destination paths are the same. --- diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 10b07a6e3..c4d49cf16 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -2855,7 +2855,7 @@ setLocation( void * vdata ) tr_dbg( "Found file #%d: %s", (int)i, oldpath ); - if( do_move ) + if( do_move && !tr_is_same_file( oldpath, newpath ) ) { tr_bool renamed = FALSE; errno = 0;