summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* releasing package man-db version 2.11.2-2debian/2.11.2-2archive/debian/2.11.2-2Colin Watson2023-03-12
|
* Romanian (thanks, Remus-Gabriel Chelu)Colin Watson2023-03-12
| | | | Closes: #1032685
* releasing package man-db version 2.11.2-1debian/2.11.2-1archive/debian/2.11.2-1Colin Watson2023-01-08
|
* New upstream release (2.11.2)Colin Watson2023-01-08
|\
| * Import man-db_2.11.2.orig.tar.xzColin Watson2023-01-08
| |\
| | * Release man-db 2.11.2Colin Watson2023-01-08
| | |
| | * mandb: Check for stray cats even if the manpath is unchangedColin Watson2023-01-01
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
| | * mandb: Fix crash when processing stray catsColin Watson2023-01-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * Pacify gcc -Wanalyzer-use-of-uninitialized-valueColin Watson2022-12-31
| | | | | | | | | | | | | | | | | | | | | | | | 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)`.
| | * Fix segfault when nroff is not installedColin Watson2022-12-31
| | | | | | | | | | | | | | | | | | | | | * 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.
| | * Fix compile and test failures when troff is not groffColin Watson2022-12-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * Update Korean manual page translationSeong-ho Cho2022-11-29
| | | | | | | | | | | | * man/po4a/po/ko.po: Update from Translation Project.
| | * Update Russian manual page translationYuri Kozlov2022-11-28
| | | | | | | | | | | | * man/po4a/po/ru.po: Update from Translation Project.
* | | Set upstream metadata fields: Repository.Colin Watson2023-01-02
| | | | | | | | | | | | Changes-By: lintian-brush
* | | releasing package man-db version 2.11.1-1debian/2.11.1-1archive/debian/2.11.1-1Colin Watson2022-11-15
| | |
* | | New upstream release (2.11.1)Colin Watson2022-11-15
|\| |
| * | Import man-db_2.11.1.orig.tar.xzColin Watson2022-11-15
| |\|
| | * Release man-db 2.11.1Colin Watson2022-11-15
| | |
| | * Tweak README for better readabilityColin Watson2022-11-15
| | | | | | | | | | | | * README.md: Add blank line for improved Markdown rendering.
| | * web: Fix man.png width/heightColin Watson2022-11-14
| | | | | | | | | | | | * web/index.html: Update width and height for man.png.
| | * web: Update man(1) imageColin Watson2022-11-14
| | | | | | | | | | | | * web/man.png: Replace with a fresh screenshot.
| | * Link to project home pageColin Watson2022-11-14
| | | | | | | | | | | | * README.md: Add home page link (https://man-db.gitlab.io/man-db/).
| | * Add GitLab Pages siteColin Watson2022-11-14
| | | | | | | | | | | | | | | | | | | | | * .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.
| | * Transfer Git repository to new groupColin Watson2022-11-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| | * Remove unused includeColin Watson2022-11-12
| | | | | | | | | | | | * src/manconv_client.c: Remove unused `#include "idpriv.h"`.
| | * Fix distribution of Korean manual page translationColin Watson2022-11-05
| | | | | | | | | | | | | | | | | | Accidentally omitted from 8f12d39bbb6748a1257358269028ef919f9c92e6. * man/Makefile.am (DIST_SUBDIRS): Add ko.
| | * Replace $ in page names rather than trying to escape itColin Watson2022-11-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * Add Korean manual page translationColin Watson2022-11-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| | * Add Korean translationSeong-ho Cho2022-10-28
| | | | | | | | | | | | | | | | | | * po/ko.po: New from Translation Project. * po/LINGUAS: Add ko. * man/THANKS: Add translator credit.
| | * Update Swedish manual page translationSebastian Rasmussen2022-10-28
| | | | | | | | | | | | * man/po4a/po/sv.po: Update from Translation Project.
| | * zsoelim_open_file: Fix use of uninitialized valueColin Watson2022-10-18
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * Recognize more Hungarian translations of the NAME sectionColin Watson2022-10-18
| | | | | | | | | | | | | | | | | | * src/lexgrog.l (hu_name): Handle the case where "É" or "é" is written as "\('E" or "\('e". * NEWS.md: Document this.
| | * Sort whatis references below real pages more aggressivelyColin Watson2022-10-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * Silence error for empty mandir with missing catdirColin Watson2022-10-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * Add 3type to default section listColin Watson2022-10-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * Escape $ in page names when constructing less promptsColin Watson2022-10-18
| | | | | | | | | | | | | | | | | | | | | | | | Fixes Debian bug #1021951. * include/manconfig.h (LESS_OPTS): Add `--use-backslash`. * src/man.c (escape_less): Also escape `$` characters. * NEWS.md: Document this.
* | | debian/copyright: Update Source URLColin Watson2022-11-14
| | |
* | | debian/control: Update Homepage URLColin Watson2022-11-14
| | |
* | | debian/upstream/metadata: Update upstream Git URLColin Watson2022-11-14
| | |
* | | releasing package man-db version 2.11.0-1debian/2.11.0-1archive/debian/2.11.0-1Colin Watson2022-10-15
| | |
* | | Update Lintian override to current syntaxColin Watson2022-10-15
| | |
* | | New upstream release (2.11.0)Colin Watson2022-10-15
|\| |
| * | Import man-db_2.11.0.orig.tar.xzColin Watson2022-10-15
| |\|
| | * Release man-db 2.11.0Colin Watson2022-10-15
| | |
| | * ult_src: Fix possible NULL dereferenceColin Watson2022-10-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `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`.
| | * Fix regression in preprocessor string handlingColin Watson2022-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Split into multiple functionsColin Watson2022-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `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.
| | * Assert that another xasprintf call returns non-NULLColin Watson2022-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * Fix error messageColin Watson2022-10-09
| | | | | | | | | | | | | | | | | | * 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).
| | * Convert many more ints to boolsColin Watson2022-10-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.