1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-28 10:38:45 +00:00

fixup! fix: don't follow symlinks when removing junk files (#1638) (#1638) (#2470)

code style
This commit is contained in:
Charles Kerr 2022-01-21 12:39:01 -06:00 committed by GitHub
parent ddca909699
commit 4833723651
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2122,7 +2122,8 @@ static void removeEmptyFoldersAndJunkFiles(char const* folder)
auto const filename = tr_strvPath(folder, name);
auto info = tr_sys_path_info{};
if (tr_sys_path_get_info(filename.c_str(), TR_SYS_PATH_NO_FOLLOW, &info, nullptr) && info.type == TR_SYS_PATH_IS_DIRECTORY)
if (tr_sys_path_get_info(filename.c_str(), TR_SYS_PATH_NO_FOLLOW, &info, nullptr) &&
info.type == TR_SYS_PATH_IS_DIRECTORY)
{
removeEmptyFoldersAndJunkFiles(filename.c_str());
}