mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +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:
parent
4e38d97621
commit
125d2506cd
1 changed files with 1 additions and 1 deletions
|
@ -2855,7 +2855,7 @@ setLocation( void * vdata )
|
||||||
|
|
||||||
tr_dbg( "Found file #%d: %s", (int)i, oldpath );
|
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;
|
tr_bool renamed = FALSE;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
|
Loading…
Reference in a new issue