set the hidden attribute when creating the part file

This commit is contained in:
arvidn 2018-05-21 14:10:49 +02:00 committed by Arvid Norberg
parent 54f00ce09d
commit ed8fffc1a6
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
* set the hidden attribute when creating the part file
* fix recent regression with force_proxy setting
* don't perform DNS lookups for the DHT bootstrap unless DHT is enabled
* fix issue where setting file/piece priority would stop checking

View File

@ -180,7 +180,7 @@ namespace libtorrent
TORRENT_ASSERT(offset >= 0);
mutex::scoped_lock l(m_mutex);
open_file(file::read_write, ec);
open_file(file::read_write | file::attribute_hidden, ec);
if (ec) return -1;
int slot = -1;
@ -212,7 +212,7 @@ namespace libtorrent
int slot = i->second;
open_file(file::read_write, ec);
open_file(file::read_write | file::attribute_hidden, ec);
if (ec) return -1;
l.unlock();
@ -393,7 +393,7 @@ namespace libtorrent
return;
}
open_file(file::read_write, ec);
open_file(file::read_write | file::attribute_hidden, ec);
if (ec) return;
boost::scoped_array<boost::uint32_t> header(new boost::uint32_t[m_header_size / 4]);