mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-07 06:39:23 +00:00
Merge branch 'master' of github.com:rakshasa/rtorrent
This commit is contained in:
@@ -138,9 +138,10 @@ apply_d_change_link(core::Download* download, const torrent::Object::list_type&
|
|||||||
|
|
||||||
switch (changeType) {
|
switch (changeType) {
|
||||||
case 0:
|
case 0:
|
||||||
// if (symlink(target.c_str(), link.c_str()) == -1)
|
if (symlink(target.c_str(), link.c_str()) == -1){
|
||||||
// control->core()->push_log("create_link failed: " + std::string(rak::error_number::current().c_str()));
|
lt_log_print(torrent::LOG_TORRENT_WARN, "create_link failed: %s",
|
||||||
// control->core()->push_log("create_link failed: " + std::string(rak::error_number::current().c_str()) + " to " + target);
|
rak::error_number::current().c_str());
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
@@ -149,8 +150,9 @@ apply_d_change_link(core::Download* download, const torrent::Object::list_type&
|
|||||||
rak::error_number::clear_global();
|
rak::error_number::clear_global();
|
||||||
|
|
||||||
if (!fileStat.update_link(link) || !fileStat.is_link() ||
|
if (!fileStat.update_link(link) || !fileStat.is_link() ||
|
||||||
unlink(link.c_str()) == -1) {
|
unlink(link.c_str()) == -1){
|
||||||
// control->core()->push_log("delete_link failed: " + std::string(rak::error_number::current().c_str()));
|
lt_log_print(torrent::LOG_TORRENT_WARN, "delete_link failed: %s",
|
||||||
|
rak::error_number::current().c_str());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user