Skip to content

Removed checks against symlinks causing errors when running on Wine - #124

Merged
stanuwu merged 2 commits into
stanuwu:masterfrom
timoreo22:fix/wine-sdk
Sep 27, 2026
Merged

stanuwu merged 2 commits into
stanuwu:masterfrom
timoreo22:fix/wine-sdk

Conversation

@timoreo22

Copy link
Copy Markdown
Contributor

Under wine, not only is Z:\ a reparse point, but also Z:\home

The current system introduced in #101 does not handle that case leading to sdk generation failing on wine if the d2 install is anywhere within /home (aka where most users would have it)

This change is a bit more wide, it reverts #101 and removes most checks against symbolic links (one exception is remove_tree, to not follow symbolic links)

I couldn't find any reason behind most of the other checks against symlinks, and i've ensured that following symlinks in theses conditions cannot lead to deletion of arbitrary files

@stanuwu
stanuwu merged commit 5f9b989 into stanuwu:master Sep 27, 2026
@stanuwu

stanuwu commented Sep 27, 2026

Copy link
Copy Markdown
Owner

Merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants