]> granicus.if.org Git - transmission/commitdiff
(trunk libT) torrent.c setLocation(): don't try to move a file if the source and...
authorJordan Lee <jordan@transmissionbt.com>
Mon, 24 Jan 2011 06:07:06 +0000 (06:07 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Mon, 24 Jan 2011 06:07:06 +0000 (06:07 +0000)
libtransmission/torrent.c

index 10b07a6e3e4da38a852254280aee4285dc249e81..c4d49cf161a773a0dc1f52ed11e1956425380c18 100644 (file)
@@ -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;