Skip to content

Fix checking realpath return value - #219

Open
reidsunderland wants to merge 3 commits into
developmentfrom
issue218
Open

Fix checking realpath return value#219
reidsunderland wants to merge 3 commits into
developmentfrom
issue218

Conversation

@reidsunderland

@reidsunderland reidsunderland commented Aug 21, 2026

Copy link
Copy Markdown
Member

Close #218

This is a straightforward bugfix. realpath returns a pointer when successful and NULL when it fails. The code inside the if was being executed when realpath was successful, not when it failed.

I also checked other cases where realpath was used and the logic was correct everywhere else.

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.

links do not work when specified destination is just a directory

1 participant