fix error handling of unsupported hard-links

This commit is contained in:
arvidn 2018-01-10 23:05:50 +01:00 committed by Arvid Norberg
parent 1877724c17
commit f29bb69612
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
* fix error handling of unsupported hard-links
1.1.6 release
* deprecate save_encryption_settings (they are part of the normal settings)

View File

@ -568,7 +568,7 @@ namespace libtorrent
// most errors are passed through, except for the ones that indicate that
// hard links are not supported and require a copy.
// TODO: 2 test this on a FAT volume to see what error we get!
if (errno != EMLINK || errno != EXDEV)
if (errno != EMLINK && errno != EXDEV)
{
// some error happened, report up to the caller
ec.assign(errno, system_category());