Skip to content

Conversation

@pixelcmtd
Copy link
Member

What does it do?

Return 1, when opendir fails.

Why the change?

Fixes segfaults.

How can this be tested?

Reproduce #71, or chown root:root ~/.tldrc && chmod 700 ~/.tldrc.

Relevant tickets?

While not fixing it, this does stop #71 from segfaulting.

pixelcmtd and others added 2 commits January 22, 2022 15:28
I've been hesitant to do this, because we don't do it anywhere else.
According to Apple's man page `opendir` doesn't set `errno`, so no further info.
@MasterOdin MasterOdin merged commit 842c221 into tldr-pages:master Jan 23, 2022
@pixelcmtd pixelcmtd deleted the patch-1 branch May 8, 2022 01:37
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