Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't follow symlink when creating torrents #21944

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

Chocobo1
Copy link
Member

@Chocobo1 Chocobo1 commented Dec 3, 2024

Now on Windows, it won't follow/include .lnk files when creating torrents.
Note that libtorrent will throw errors if we force adding .lnk files.

Closes #13286.

@Chocobo1 Chocobo1 added the Core label Dec 3, 2024
@Chocobo1 Chocobo1 added this to the 5.0.3 milestone Dec 3, 2024
@Chocobo1
Copy link
Member Author

Chocobo1 commented Dec 3, 2024

@stalkerok
Could you verify this PR is the expected behavior for #13286, #21854?

@stalkerok
Copy link
Contributor

Tested! 👍

@glassez
Copy link
Member

glassez commented Dec 4, 2024

Now on Windows, it won't follow/include .lnk files when creating torrents.

How about Linux etc.? Is it a really bad idea to follow symlinks there?

Now on Windows, it won't follow/include .lnk files when creating torrents.
Note that libtorrent will throw errors if we force adding .lnk files.

Non-Windows OS will still follow symlinks.

Closes qbittorrent#13286.
@Chocobo1
Copy link
Member Author

Chocobo1 commented Dec 6, 2024

How about Linux etc.? Is it a really bad idea to follow symlinks there?

It should be OK on linux IMO.
PR updated.

@Chocobo1 Chocobo1 merged commit 6f31a13 into qbittorrent:master Dec 7, 2024
14 checks passed
@Chocobo1 Chocobo1 deleted the torrent_creator branch December 7, 2024 12:43
@Chocobo1
Copy link
Member Author

Chocobo1 commented Dec 7, 2024

@glassez
Please backport this PR, thanks!

glassez pushed a commit to glassez/qBittorrent that referenced this pull request Dec 7, 2024
Now on Windows, it won't follow/include .lnk files when creating torrents.
Note that libtorrent will throw errors if we force adding .lnk files.

Non-Windows OS will still follow symlinks.

Closes qbittorrent#13286.
PR qbittorrent#21944.
@glassez
Copy link
Member

glassez commented Dec 7, 2024

@glassez Please backport this PR, thanks!

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Torrent creator creates bad torrent when target folder contains shortcut files (.lnk files) on Windows
3 participants