| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
| |
Closes: #1032685
|
| |
|
|\ |
|
| |\ |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* src/mandb.c (mandb): Require the database file to be open before
calling `straycats`, but don't require `create_db` or
`update_db_wrapper` to have made any changes to it.
* src/tests/mandb-whatis-broken-link-changes: Update expected output.
* NEWS.md: Document this.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Regression introduced in man-db 2.11.0. Fixes Debian bug #1027487.
* src/straycats.c (check_for_stray): Pass a basic trace list to
`store_descriptions`, since that's required as of commit
d3e4b5522ae8152f10db0bb98e6873c9cc17ed59.
* NEWS.md: Document this.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
It incorrectly thought that `outleft` could be uninitialized in some
cases. Restructure code slightly to simplify its analysis.
* src/manconv.c (try_iconv): Initialize `outptr` in all branches of the
conditional beginning with `if (handle_iconv_errors)`.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* src/man.c (try_section): Only free the `names` list if it is non-NULL
due to `NROFF_MISSING` being defined, and return early if options are
set such that cat files cannot be used either.
* NEWS.md: Document this.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fixes https://gitlab.com/man-db/man-db/-/issues/12.
* src/man.c (ONLY_TROFF_IS_GROFF): Only define if `HAS_TROFF` is
defined.
(init_html_pager): Only define if `TROFF_IS_GROFF` is defined.
(format_display): Mark `man_file` as unused if `TROFF_IS_GROFF` is not
defined.
* configure.ac: Substitute `troff_is_groff`.
* src/tests/Makefile.am (TESTS_ENVIRONMENT): Export `troff_is_groff`.
* src/tests/man-language-specific-requests: Adjust expected
language-specific requests if `troff_is_groff` is not `yes`.
* NEWS.md: Document this.
|
| | |
| | |
| | |
| | | |
* man/po4a/po/ko.po: Update from Translation Project.
|
| | |
| | |
| | |
| | | |
* man/po4a/po/ru.po: Update from Translation Project.
|
| | |
| | |
| | |
| | | |
Changes-By: lintian-brush
|
| | | |
|
|\| | |
|
| |\| |
|
| | | |
|
| | |
| | |
| | |
| | | |
* README.md: Add blank line for improved Markdown rendering.
|
| | |
| | |
| | |
| | | |
* web/index.html: Update width and height for man.png.
|
| | |
| | |
| | |
| | | |
* web/man.png: Replace with a fresh screenshot.
|
| | |
| | |
| | |
| | | |
* README.md: Add home page link (https://man-db.gitlab.io/man-db/).
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* .gitlab-ci.yml (stages): Add deploy.
(pages): New job.
* web/development.html, web/index.html, web/man.png, web/standard.css,
web/white.css: New files.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* README.md, docs/HACKING.md, man/man1/apropos.man1,
man/man1/lexgrog.man1, man/man1/man-recode.man1, man/man1/man.man1,
man/man1/manconv.man1, man/man1/manpath.man1, man/man1/whatis.man1,
man/man1/zsoelim.man1, man/man5/manpath.man5, man/man8/accessdb.man8,
man/man8/catman.man8, man/man8/mandb.man8: Change GitLab URL to
https://gitlab.com/man-db/man-db.
* NEWS.md: Document this.
|
| | |
| | |
| | |
| | | |
* src/manconv_client.c: Remove unused `#include "idpriv.h"`.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Accidentally omitted from 8f12d39bbb6748a1257358269028ef919f9c92e6.
* man/Makefile.am (DIST_SUBDIRS): Add ko.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Jakub Wilk points out in Debian bug #1021951 that attempting to use the
`--use-backslash` option has a number of complications. Just replace
dollar signs with question marks instead.
* include/manconfig.h (LESS_OPTS): Revert addition of `--use-backslash`.
* src/man.c: Replace `$` characters with `?` rather than trying to
escape them.
* NEWS.md: Document this.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* man/po4a/po/ko.po: New from Translation Project (thanks, Seong-ho
Cho).
* configure.ac (AC_CONFIG_FILES): Add man/ko/Makefile.
* man/LINGUAS.po4a: Add ko.
* man/Makefile.am (DIST_SUBDIRS): Add ko.
* man/ko/Makefile.am, man/ko/translator.add: New files.
* man/po4a/Makefile.am (POFILES): Add po/ko.po.
* man/po4a/po4a.cfg (po4a_langs): Add ko.
* man/THANKS: Update translator credit.
* .gitignore: Add man/ko/man1, man/ko/man5, and man/ko/man8.
|
| | |
| | |
| | |
| | |
| | |
| | | |
* po/ko.po: New from Translation Project.
* po/LINGUAS: Add ko.
* man/THANKS: Add translator credit.
|
| | |
| | |
| | |
| | | |
* man/po4a/po/sv.po: Update from Translation Project.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In the case where `filename` has no directory part and does not contain
a dot, we could reach the decision of whether to emit a "can't open %s"
error message without initializing `decomp`. Noticed by `gcc -Og`.
* src/zsoelim.l (zsoelim_open_file): Initialize `decomp` to NULL.
|
| | |
| | |
| | |
| | |
| | |
| | | |
* src/lexgrog.l (hu_name): Handle the case where "É" or "é" is written
as "\('E" or "\('e".
* NEWS.md: Document this.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
I think this makes more sense in most cases, and it definitely fixes
some observed odd behaviour.
Fixes Debian bug #780235.
* src/man.c (compare_candidates): Compare IDs before comparing sections.
* NEWS.md: Document this.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fixes https://gitlab.com/cjwatson/man-db/-/issues/8.
* src/check_mandirs.c (ensure_db_open): Don't call `gripe_rwopen_failed`
before returning false (since it only makes sense for one of the two
callers).
(testmandirs): Call `gripe_rwopen_failed` if `ensure_db_open` returns
false.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is used by the Linux man-pages package, and should be lower
priority than section 2. Suggested by Alejandro Colomar.
Fixes https://gitlab.com/cjwatson/man-db/-/issues/5.
* include/manconfig.h (STD_SECTIONS): Add `3type` between sections `2`
and `5`.
* m4/man-arg-sections.m4 (MAN_ARG_SECTIONS): Likewise.
* man/man5/manpath.man5 (FORMAT): Update documentation of SECTION.
* src/tests/man-exact-section-matches: Update default section order.
* src/man_db.conf.in (SECTION): Update documentation.
* NEWS.md: Document this.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fixes Debian bug #1021951.
* include/manconfig.h (LESS_OPTS): Add `--use-backslash`.
* src/man.c (escape_less): Also escape `$` characters.
* NEWS.md: Document this.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\| | |
|
| |\| |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
`gcc -fanalyzer` noticed that `canonicalize_file_name` can return NULL,
therefore `find_include` could return NULL, and therefore it was
possible for `ult_src` to attempt to dereference NULL in the `stat
(base, &st)` call. Push more work down to `find_include` so that we can
consistently treat it as an error if it returns NULL.
* src/ult_src.c (ult_softlink): Move error messages to ...
(gripe_canonicalize_failed): ... here (new function).
(find_include): Replace simple suffix globbing with `comp_file`, and use
this approach in both the relative-to-mantree and
relative-to-dirname-of-page cases; we previously only tried it in the
latter case. Call `gripe_canonicalize_failed` if the final
canonicalization step fails; print a "can't resolve %s" error if we
can't even find anything to canonicalize.
(ult_src): Remove `comp_file` processing, now done by `find_include`.
* src/ult_src.h (gripe_canonicalize_failed): Add prototype.
* src/straycats.c (check_for_stray): Use `gripe_canonicalize_failed`.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We need to stop looking for characters that identify preprocessors after
the first space or dash, as otherwise encoding declarations of the kind
specified in man-recode(1) may break.
* src/man.c (make_roff_command): Only consider the part of the
preprocessor string up to the first space or dash, if any.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
`match_in_directory` had two almost entirely disjoint code paths, one
for regex patterns and one for wildcard patterns; but its structure made
it difficult for `gcc -fanalyzer` to understand that, and it was a bit
unclear for humans too. Split it up for clarity.
* src/globbing.c (match_in_directory): Split out the
regex/wildcard-handling parts to ...
(match_regex_in_directory, match_wildcard_in_directory): ... here,
respectively.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
As with commit a22f140354c80a7c5c52c4a413f1c929e105a24c, `gcc
-fanalyzer` notices that `xasprintf` can return NULL in some situations.
I believe those situations would all amount to programming errors here,
so add an assert.
* src/mandb.c (main): Assert that `xasprintf` returns non-NULL.
|
| | |
| | |
| | |
| | |
| | |
| | | |
* src/straycats.c (check_for_stray): If canonicalizing `catdir` returns
NULL, then substitute `catdir` into the "warning: %s is a dangling
symlink" message, not `fullpath` (which at this point must be NULL).
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
I don't expect this to make a significant runtime difference, but it
makes some things easier to analyse visually.
* lib/cleanup.c (do_cleanups_sigsafe): Change `in_sighandler` parameter
type to bool. Update all callers.
(push_cleanup): Change `handler_installed` local variable type to bool.
* lib/cleanup.h (do_cleanups_sigsafe): Update prototype.
* lib/compression.c (comp_info): Change `want_stem` parameter type to
bool. Update all callers.
* lib/compression.h (comp_info): Update prototype.
* lib/sandbox.c (seccomp_filter_unavailable): Change type to bool.
Update all references.
(make_seccomp_filter): Change `permissive` parameter type to bool.
Update all callers.
(_sandbox_load): Likewise.
* lib/util.c (remove_directory): Change `recurse` parameter type to
bool. Update all callers.
* lib/util.h (remove_directory): Update prototype.
* libdb/db_gdbm.c (opening): Change type to bool. Update all
references.
* libdb/db_store.c (compare_ids): Change `promote_links` parameter type
to bool. Update all callers.
* libdb/db_storage.h (compare_ids): Update prototype.
* src/catman.c (parse_for_sec): Change `message` local variable type to
bool.
(check_access): Change return type to bool.
(purge_whatis): Change `cat` parameter type to bool. Update all
callers.
(check_multi_key): Change return type to bool.
* src/descriptions.c (parse_descriptions): Change `seen_base` local
variable type to bool.
* src/globbing.c (look_for_file): Change `cat` parameter type to bool.
Update all callers.
* src/globbing.h (look_for_file): Update prototype.
* src/lexgrog.l (fill_mode, waiting_for_quote): Change types to bool.
Update all references.
* src/man.c (skip, created_tmp_cat): Change types to bool. Update all
references.
(run_mandb): Change `create` parameter type to bool. Update all
callers.
(squeeze_blank_lines): Change `in_blank_line` and `got_blank_line` local
variable types to bool.
(display): Change `format` and `printed` local variable types to bool.
(convert_name): Change `fsstnd` parameter type to bool. Update all
callers.
(add_candidate): Change `dupcand` local variable type to bool.
(main): Change `maybe_section` local variable type to bool.
* src/manp.c (add_sections): Change `user` parameter type to bool.
Update all callers.
(add_def): Likewise.
(add_mandb_map): Likewise.
(add_to_dirlist): Likewise.
(read_config_file): Change `done` local variable type to bool.
(get_manpath_from_path): Change `mandatory` parameter type to bool.
Update all callers.
* src/manp.h (get_manpath_from_path): Update prototype.
* src/whatis.c (do_apropos): Change `matched` local variable type to
bool.
* src/zsoelim.l (no_newline): Change type to bool. Update all
references.
(zsoelim_open_file): Change return type to true.
* src/zsoelim.h (zsoelim_open_file): Update prototype.
|