mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 06:37:52 +00:00
Previously, man would only check if a path is not associated with a manpage when no section was specified via the command line. So `man gibberish` would fail with "no man page for gibberish", but `man 2 gibberish` would fail with a runtime error and still open a pipe to the pager leading to a nasty crash. Moving the check outside the "if (!section)" block fixes this. Also: if a section is specified, the error message now echoes it back (no manpage for foo in section bar).
4.0 KiB
4.0 KiB