tldr-pages / tldr-c-client

C command-line client for tldr pages 📚
MIT License
299 stars 50 forks source link

parse_tldrlist: propagate opendir fails instead of segfaulting #73

Closed pixelcmtd closed 2 years ago

pixelcmtd commented 2 years ago

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.