fixed error reporting when fallocate fails

This commit is contained in:
Arvid Norberg 2010-10-14 00:58:08 +00:00
parent bd1f0726ce
commit 7be0604877
2 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@
* added more detailed instrumentation of the disk I/O thread
* fixed error reporting when fallocate fails
* deprecate support for separate proxies for separate kinds of connections
0.15.4 release

View File

@ -1572,7 +1572,7 @@ namespace libtorrent
// and report it.
if (errno != ENOSYS)
{
ec.assign(ret, get_posix_category());
ec.assign(errno, get_posix_category());
return false;
}
#endif // TORRENT_LINUX