forked from premiere/premiere-libtorrent
fix error handling of unsupported hard-links
This commit is contained in:
parent
1877724c17
commit
f29bb69612
|
@ -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)
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue