1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

(trunk libT) torrent.c setLocation(): don't try to move a file if the source and destination paths are the same.

This commit is contained in:
Jordan Lee 2011-01-24 06:07:06 +00:00
parent 4e38d97621
commit 125d2506cd

View 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;