diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-10 13:34:30 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-10 13:34:30 +0000 |
commit | 9efbcc1d41b6068c746255b6a5006d3d96fb7834 (patch) | |
tree | a4bf1fd5bbe93d1ede0bfab95a61a7cd1382173a | |
parent | f76fe2452fef70dd2e7dfffdb8619587208898b9 (diff) | |
download | mandoc-9efbcc1d41b6068c746255b6a5006d3d96fb7834.tar.gz |
Fix a nasty typo that prevented .so links to gziped manuals
from working in the absence of a mandoc.db(5) database.
Found the hard way by Svyatoslav Mishyn on Crux Linux.
-rw-r--r-- | read.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -798,7 +798,7 @@ mparse_open(struct mparse *curp, const char *file) if ( ! curp->gzip) { mandoc_asprintf(&cp, "%s.gz", file); - fd = open(file, O_RDONLY); + fd = open(cp, O_RDONLY); free(cp); if (fd != -1) { curp->gzip = 1; |