missing changes

This commit is contained in:
Alden Torres 2019-03-10 16:56:08 -04:00 committed by Arvid Norberg
parent 1fe763483e
commit 620eb39f2c
2 changed files with 4 additions and 4 deletions

View File

@ -114,13 +114,13 @@ namespace {
else
{
// #error use the fields from s
file_flags_t const file_flags = get_file_attributes(f);
file_flags_t const file_flags = aux::get_file_attributes(f);
// mask all bits to check if the file is a symlink
if ((file_flags & file_storage::flag_symlink)
&& (flags & create_torrent::symlinks))
{
std::string sym_path = get_symlink_path(f);
std::string sym_path = aux::get_symlink_path(f);
fs.add_file(l, 0, file_flags, std::time_t(s.mtime), sym_path);
}
else

View File

@ -758,7 +758,7 @@ TORRENT_TEST(symlinks_restore)
wait_for_alert(ses, torrent_checked_alert::alert_type, "torrent_checked_alert");
std::string const f = combine_path(combine_path(work_dir, "Some.framework"), "SDL2");
TEST_CHECK(get_file_attributes(f) & file_storage::flag_symlink);
TEST_CHECK(get_symlink_path(f) == "Versions/A/SDL2");
TEST_CHECK(aux::get_file_attributes(f) & file_storage::flag_symlink);
TEST_CHECK(aux::get_symlink_path(f) == "Versions/A/SDL2");
}
#endif