Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't follow symlinks when removing junk files (#1638)
This prevents accidentally following a symlink that points outside of the torrent's folder and crawling the rest of the drive for junk files to remove. This also prevents symlinks that point to a folder from being treated as real directories, which would cause them to be removed even if the folder they point to is not actually empty. Both issues are especially bad when combined: a symlink to / inside the torrent folder caused transmission to crawl the entire drive and delete every single folder symlink it could find. Oops.
- Loading branch information