78 KiB
man-db 2.13.1 (2 May 2025)
Fixes:
- Fix various minor formatting issues in manual pages.
- Tolerate additional spaces in preprocessor strings.
- Fix check for generated source files in out-of-tree builds.
- Fix building with the
muslC library.
Improvements:
- Recognize another Ukrainian translation of the
NAMEsection. - Increase the maximum size of the
NAMEsection from 8192 to 16384 bytes.
man-db 2.13.0 (29 August 2024)
Compatibility notes:
- Drop support for versions of groff before 1.21 (released on 2010-12-31).
Fixes:
- Fix
man-suffixed-extensiontest failure when not using the GNU hierarchy organization. - Fix
-Wmissing-variable-declarationswarnings with GCC 14. - Fix
-Wflex-array-member-not-at-endwarning with GCC 14.
Improvements:
- Upgrade to Gnulib
stable-202407. - Support running the test suite against an installed package; this is useful for systems such as Debian's autopkgtest framework.
man-db 2.12.1 (5 April 2024)
Fixes:
- Fix excessive cleanup of
/var/cache/manbysystemd-tmpfiles.
Improvements:
manmatches the display width more accurately to the configured width.- Upgrade to Gnulib
stable-202401. - Mention
groff'spdfdevice inman(1). - Speed up
seccompfilter slightly. - Document how to format pages using italic rather than underlined text.
Compatibility notes:
- Remove the obsolete
chconfigtool for converting man-db configuration files to the FHS. This transition took place almost 25 years ago (at least in Debian), so it's not worth keeping it around now.
man-db 2.12.0 (23 September 2023)
Fixes:
- Fix some manual page portability issues with groff 1.23.0.
- Fix test failures when a working
iconvis not available. - Ensure that timestamps read from the database can go past the year 2038, even on systems where this is not the default.
- Fix
manpathnot parsingPATHentries with trailing slash correctly for guessingMANPATHentries. - More accurately document the behaviour of passing file names as arguments
to
manwithout the-l/--local-fileoption. - Avoid duplicate cleanup of old cat pages by both
man-db.serviceandsystemd-tmpfiles-clean.service.
Improvements:
- Update system call lists in
seccompsandbox fromsystemd. - Upgrade to Gnulib
stable-202307. - Work around the Firebuild accelerator in
seccompsandbox: if this is in use then we need to allow some socket-related system calls. man -Know deduplicates search results that point to the same page.- Warn if
mandbdrops to--user-dbmode due to running as the wrong user. - Change section title recommendations in
man(1)to mentionSTANDARDSrather thanCONFORMING TO, in line withman-pages(7). - Add a
STANDARDSsection toman(1)itself. - Document that
man -Kmay suffer from false negatives as well as false positives. - Take advantage of newer
grofffacilities to implementman --no-hyphenationandman --no-justification, if available. man -fandman -know pass any-r/--regexor-w/--wildcardoptions on towhatisandaproposrespectively.- Always pass a line length to
nroff, even if we believe that it matches the default. - Allow disabling
groffwarnings viaman --warnings, by prefixing a warning name with!.
man-db 2.11.2 (8 January 2023)
Fixes:
- Fix compile and test failures when
troffis notgroff. - Fix segfault in typical uses of
manwhennroffis not installed. - Fix crash in
mandbwhen processing stray cats.
Improvements:
- Check for stray cats even if no manual pages in a given manpath were changed.
man-db 2.11.1 (15 November 2022)
Build:
- Transfer Git repository to https://gitlab.com/man-db/man-db.
Fixes:
- SECURITY: Replace
$characters in page names with?when constructinglessprompts. - Silence error message when processing an empty manual page hierarchy with a nonexistent cache directory.
man(1)now sorts whatis references below real pages, even if the whatis references are from a section with higher priority.
Improvements:
- Add section
3typeto the default section list just after2. This is used by the Linux man-pages package. - Recognize more Hungarian translations of the
NAMEsection.
man-db 2.11.0 (15 October 2022)
Fixes:
mandbnow correctly records filters in the database if it uses cached whatis information.- Upgrade Gnulib, fixing syntax error on glibc systems with GCC 11.
- The
CATWIDTHconfiguration file directive now overridesMINCATWIDTHandMAXCATWIDTH. - Database entries for links were often incorrectly stored as if they were entries for the ultimate source of the page. They are now stored with the correct type.
- Store links in the database using the section and extension of the link rather than of the ultimate source file.
- Consider pages for adding to the database even if they seem to already exist; this performance optimization is no longer needed due to caching, and it produced inconsistent results in some unusual cases.
mannow runs any required preprocessors in the same order thatgroffdoes, rather than trusting the order of filters in a page's preprocessor string.- Fix building on MinGW. (I haven't been able to test this; help from MinGW experts would be welcome.)
Improvements:
- Add more recognized case variants for localized versions of the
NAMEsection. - Maintain multi keys in sorted order, improving database reproducibility.
- Pick a more consistent name for the target of a whatis entry in the database.
- Extend rules for when to replace one database entry with another, producing more stable behaviour.
- Fully reorganize databases after writing them, allowing the reproduction of bitwise-identical databases regardless of scan order (at least with GDBM).
man-db 2.10.2 (17 March 2022)
Build:
- Regenerating man-db's build system now explicitly requires Automake >= 1.14. (This was already the case since at least man-db 2.10.0, but was previously undocumented.)
Fixes:
- Make
man -Hsleep for a few seconds after starting the browser, since it may background itself before loading files (Dr. Werner Fink). - If an override directory is configured using
--with-override-dir, it is now applied more consistently when building the manpath, and whether a page was found in an override directory is considered when sorting candidates for display (Mihail Konev).
Improvements:
- Make the man-db manual build reproducible.
- Add some hardening options to the
systemdservice. configurenow has a--with-snapdiroption, for use on systems wheresnapdis configured to use a directory other than/snap.
man-db 2.10.1 (10 February 2022)
Fixes:
- Fix occasional
mandb-symlink-target-timestamptest failure. - Fix inadvertent reliance on a GCC extension that caused build failures with Clang.
- Fix building without
iconv. - Fix building on Cygwin.
man-db 2.10.0 (4 February 2022)
Build:
- Move Git repository to GitLab (https://gitlab.com/cjwatson/man-db).
- Building man-db now requires a C99 compiler.
- Building man-db now requires Autoconf >= 2.64.
Fixes:
- Manpath deduplication no longer mishandles the case where another entry in the manpath is a suffix of a candidate path to append.
- Fix potential crash in path searching if
getcwdfails for reasons other than running out of memory. - Fix crash in
globbingtest tool if run with no non-option arguments. lexgrognow produces output in the user's locale.- Downgrade "malformed .lf request" warning to a debug message and rephrase
it somewhat, since
.lfrequests can use*roffarithmetic expressions and we can't reasonably parse those. - Avoid modifying the database without changing its mtime, which had been
possible since 2.7.0 if
mandb's purge phase found work to do but the main phase didn't, and which confused some backup systems into reporting possible filesystem corruption. manno longer inadvertently modifies theMANSECTenvironment variable before passing it on to its subprocesses.mandbnow stores the mtime of link targets as the mtime of their corresponding database entries, rather than sometimes storing the mtime of the link instead.- Since man-db 2.4.2,
manhas behaved as if the-loption was given if a manual page argument contains a slash. Since man-db 2.5.6, this has interacted slightly poorly with the subpage feature, emitting spurious error messages if given multiple manual page arguments some of which include a slash.manno longer emits spurious error messages in this case.
Improvements:
- Reduce overhead of
MAN_DISABLE_SECCOMP=1compared to building withoutlibseccomp. - Document
MAN_DISABLE_SECCOMPandPIPELINE_DEBUGenvironment variables inman(1). - Add
man-pages(7)reference toman(1). - Recognize Arabic and Persian translations of the
NAMEsection. - Delay the
systemdtimer usingRandomizedDelaySec, so that multiple containers/VMs on the same host are less prone to runningmandball at the same time. - Significantly improve
mandb(8)andman -Kperformance in the common case where pages are of moderate size and compressed usingzlib:mandb -cgoes from 344 seconds to 10 seconds on a test system.
man-db 2.9.4 (8 February 2021)
Improvements:
- Recognise Romanian translations of the NAME section.
- Treat
\[en](etc.) as another synonym for\-in NAME sections, alongside the existing\(en(etc.).
Fixes:
- Make the
seccompsandbox work better with libcs such asmusl(S. Gilles). - Make the
seccompsandbox allowclock_gettime64as well asclock_gettime(S. Gilles).
man-db 2.9.3 (22 June 2020)
Fixes:
- Fix manual page translation infrastructure to compare
po4aversions with more than two components correctly. - Avoid incorrect markup in
man(1)withpo4a >= 0.58.
man-db 2.9.2 (1 June 2020)
Fixes:
- Fix
man -X75-12andman -X100-12to set the document font size (using-rS12) as well as the device (using-TX75-12or-TX100-12). - Fix incompatibility of
man -Xand friends with theseccompsandbox.
Improvements:
- Add a bug tracker link to man-db's own manual pages.
- Add support for
zstd-compressed manual pages, thanks to Bernhard Rosenkränzer.
man-db 2.9.1 (25 February 2020)
Improvements:
- Drop
fdutimenspatch for GNU/Hurd; the bug it was working around was fixed in glibc 2.28. - Add
MANDB_MAPentry mapping/snap/manto/var/cache/man/snap.
man-db 2.9.0 (23 October 2019)
Fixes:
man --recodeandmanconvnow adjust encoding declarations on the first line of their input to refer to the new encoding.- Fix comparison of candidate manual pages to correctly handle the case where the language elements are the same and match the locale, but the territory elements differ.
Improvements:
- Many typographical improvements to man-db's own manual pages, largely thanks to Bjarni Ingi Gislason.
- Rewrite parts of
man(1)to make it a more accessible introduction. - If run with no arguments or only a section,
mannow suggests runningman man. mannow understands the<page>(<section>)form on its command line, so for exampleman 'chmod(2)'is now the same asman 2 chmod. While this requires more quoting, it may also be more convenient when copying and pasting cross-references to manual pages.manconvnow guesses the input encoding based on the file name if it is not explicitly specified.- There is a new
man-recodeprogram. It fulfils a purpose similar toman --recode, but has an interface designed for bulk conversion and so can be much faster when used on a large number of pages.
Compatibility notes:
- Remove the ability to undefine
COMP_SRCat build-time to disable reading compressed manual pages. This was always only a micro-optimisation, and it wasn't worth the extra code complexity. You can still configure without any compressors (either by not having them available at build time, or by configuring with--with-gzip=etc.) to achieve much the same practical effect, although the test suite still requires at leastgunzip.
man-db 2.8.7 (26 August 2019)
Fixes:
- Further workarounds for ESET File Security: allow
sendmsgwhen it is in use. - The
seccompsandbox now causes disallowed system calls to returnEPERMrather than raisingSIGSYS, in the hope of being less disruptive to preload hacks. - Make
seccompsandbox allowgetrandom, used by Hardened Malloc. manno longer saves cat pages if--no-hyphenationor--no-justificationis used.- Move decompression code out of
libman. This should really fix a link failure using the Darwin linker (unsuccessfully attempted in 2.8.6), and possibly on other platforms too. - Pass the database file name around in function parameters, rather than
storing it in a global variable with an unresolved symbol from
libmandb. Like the previous item, this fixes a link failure using the Darwin linker, and possibly on other platforms too. - Return database entries in sorted order when using NDBM. (This is based on a similar fix to the GDBM backend in man-db 2.4.2.)
Improvements:
- Recognise Esperanto, Tamil, and Ukrainian translations of the
NAMEsection.
man-db 2.8.6.1 (5 August 2019)
Fixes:
- Fix missing memory copies in
ult_srcthat caused segfaults inmandb.
man-db 2.8.6 (3 August 2019)
Fixes:
- If more than one of
../man,man,../share/man, andshare/manexist relative to a directory on$PATH, then all of them are now added to the automatically-determined manpath; previously, only the first was considered. - Remove arbitrary limit on manpath size.
- The
systemddatabase maintenance service now runsmandbwith the--quietoption, avoiding excess log messages. - Default to
--without-systemdsystemunitdirand--without-systemdtmpfilesdiron non-Linux systems. - Fix failure to link
libmanusing the Darwin linker. apropos -wnow works when given a non-lower-case pattern.
Improvements:
- Convert most list and hash table code to Gnulib's container types: these are more flexible and normally more concise than home-grown equivalents.
- There is a new configure option
--disable-manual, which causes the man-db manual not to be built or installed.
man-db 2.8.5 (5 January 2019)
Build:
- Building man-db now requires Autoconf >= 2.63 and Automake >= 1.11.2.
Fixes:
- Fix build with Berkeley DB.
- Fail to configure if
flexis needed but missing. - Fix the comment in the first line of the configuration file in the case
where
configurewas not given a--with-config-fileoption. - Fix several resource and memory leaks.
- Fix handling of
\-in the right-hand side of aNAMEsection. - Work around Microsoft's proprietary "System Center Endpoint Protection" antivirus program in the seccomp sandbox.
Improvements:
- Ship a
systemdtimer to perform daily database maintenance. - Allow disabling the installation of the
systemdtmpfilessnippet and thesystemdtimer by configuring with--with-systemdtmpfilesdir=noand--with-systemdsystemunitdir=norespectively.
man-db 2.8.4 (27 July 2018)
Fixes:
- Rely on decompressors reading from their standard input rather than redundantly passing them the input file on their command line. This works better with downstream AppArmor confinement of decompressors.
- Fix invalid syntax in
tmpfiles.d/man-db.confwhen configured with--disable-cache-owner. - Make
seccompsandbox allowsched_getaffinity, sometimes used byxz. - Check for
mandb_nfmtandmandb_tfmtin the manual page hierarchy as documented, not in the current directory. This was broken by the working-directory-handling changes in 2.8.3. Note that this change means thatman -lwill never use an external formatter (which was never documented behaviour and was surely a bad idea). - Make
seccompsandbox allow some shared memory operations across the board rather than just when ESET File Security is in use; the Astrill VPN seems to require something similar, and there are doubtless other such preload hacks. - Some versions of ESET File Security call
msggetandmsgsnd; if this program is in use, then allow those.
man-db 2.8.3 (5 April 2018)
Fixes:
- Make
seccompsandbox allowmadvise, since that's used bylbzip2. - Make
seccompsandbox allowkillandtgkilloutright, sincegroffuseskillto pass on signals to its child processes. - Make
seccompsandbox allow sibling architectures onx86/x86_64/x32, since people sometimes mix and match architectures there for performance reasons. - Fix version check in locale macro loading to tolerate
groffrelease candidates. mannow only changes working directory in child processes, so never fails due to being unable to change back to its original working directory.accessdb,apropos, andlexgrogno longer emit spuriousgettextheaders in their--helpoutput when localised.
man-db 2.8.2 (28 February 2018)
Fixes:
- Make
seccompsandbox allowkillandtgkillwhen the signal is directed at the current process or one of its threads; this is needed byxz. - Make
seccompsandbox allowioctl(fd, TIOCGWINSZ), since that's used bymusl. - Work around the proprietary "ESET File Security" antivirus program in
seccompsandbox: if this is in use then we need to allow some socket-related system calls. - Work around the
snoopyexecve()wrapper and logger inseccompsandbox: if this is in use then we need to allow some socket-related system calls. - Interpret
EFAULTfromseccomp_loadas meaning thatseccompis unavailable, since this can be returned by some versions ofqemu-user.
man-db 2.8.1 (9 February 2018)
Fixes:
- Fix
seccompsandbox build on Linux/POWER. - Fix
manconvexecution underseccompwhenmanis installed setuid. - Make
seccompsandbox allowmremap(used byiconv, for example).
Improvements:
configurenow has a--without-libseccompoption to disable the use ofseccompeven if the library is available.
man-db 2.8.0 (4 February 2018)
Fixes:
- Fix locale macro loading for Chinese to load the macro file corresponding to just the language part of the user's locale.
- Honour
--enable-cache-ownerin generatedsystemdtmpfilessnippet rather than hardcodingman. - If
manadds prefixes to a page to handle such things as disabling hyphenation, then take account of those when looking for a preprocessor line at the start of the page. - Fix a segfault in
man -D --help.
Improvements:
-
Treat
\(enas another synonym for\-in NAME sections. -
Confine most subprocesses that handle untrusted data using
seccomp. This mainly deals with subprocesses that perform encoding conversions, (de)compressors,groffprograms, and a few other odds and ends.groffprograms use a slightly more permissive filter since they need to create temporary files, so additional path-based confinement (e.g. using AppArmor) is still useful.If this goes wrong, then
MAN_DISABLE_SECCOMP=1can be set in the environment to disable it, but please report any such problem as a bug. -
mannow falls back tocatif the compile-time default pager is not executable.
man-db 2.7.6.1 (12 December 2016)
Fixes:
- Don't
chmodCACHEDIR.TAGif it doesn't exist. - Correct installation of Swedish manual pages.
man-db 2.7.6 (11 December 2016)
Fixes:
-
Fix build warnings with Perl 5.22.
-
Document that
man -Ksearches page source, not rendered text. -
Fix a long-standing bug in man-db's internal cleanup stack mechanism: if a cleanup function was pushed unexpectedly between a push/pop pair, then popping the stack would remove the wrong cleanup function and chaos could ensue. Avoid this by being more precise about which cleanup function should be popped.
-
SECURITY: Eliminate dangerous setgid-root directories. In the default configuration, cache files and directories are now owned by
man:manrather thanman:root;manandmandbare now setgidmanas well as setuidman(except in the--disable-setuidcase). This is a much simpler and safer solution to the original problem that caused my predecessor to make directories setgidroot, and doesn't introduce any interesting new privilege since themangroup's only real purpose is to be themanuser's primary group and nothing in cache directories is group-writeable.Maintainers of distribution packages should take care to review their installation rules in light of this change.
As far as I know this has no CVE ID, but it is described here.
-
Fix manual page translation infrastructure to render tables correctly with
po4a0.47.
Improvements:
mannow understands the<page>.<section>form on its command line, so for exampleman chmod.2is now the same asman 2 chmod. (Contributed by Mihail Konev.)- The owner of cache files is now configured separately from whether
manandmandbare installed setuid, using the--enable-cache-owner[=USER]option.
man-db 2.7.5 (6 November 2015)
Fixes:
- Adjust line number when inserting extra roff input.
- Disable roff input insertion with
--recode. - Build text manual with
LC_ALL=C, to help reproducible builds.
man-db 2.7.4 (8 October 2015)
Fixes:
- Fix crash when eliminating manpath duplicates if canonicalising a manpath entry fails.
- Fix a build system bug that sometimes caused substitutions in manual pages to be left unexpanded.
manexits with status 3 rather than 0 if its formatting command exits non-zero, even if its display command exits zero.manhonoursMANWIDTHin conjunction with the-Zoption, to make it easier to diagnose warnings in manual pages.
man-db 2.7.3 (9 September 2015)
Fixes:
- Tools that consider the terminal line length now try the
TIOCGWINSZioctl on/dev/ttyas well as standard input/output. mandbdoes a better job of coping with index files having incorrect ownership.- Squeeze blank lines internally rather than relying on the pager
supporting the
-soption. - Fix use-after-free in
ult_src. - Fix crash when running from a missing and unreadable current directory,
such as an orphaned subdirectory of
/proc. - Restore the ability to use
man -anoninteractively.
man-db 2.7.2 (16 August 2015)
Fixes:
man -kandman -fnow pass any provided-loption through to the underlyingapropos/whatisprograms.aproposandwhatisno longer truncate names if long output was requested.- The database handle is no longer stored in a global variable, fixing a class of possible double-close bugs.
man-db 2.7.1 (7 November 2014)
Fixes:
- Various portability fixes for Solaris, contributed by Peter Bray.
mannow runs correctly when its current working directory has been deleted. (As a result of this fix, man-db now requireslibpipeline >= 1.4.0.)man -asends its prompts to/dev/ttyrather than tostderr, and likewise reads replies from/dev/ttyrather than fromstdin.
man-db 2.7.0.2 (28 September 2014)
Fixes:
- Be more careful to avoid using or double-closing closed database handles. Fixes test suite failures on some systems.
- Patch the
fdutimensfunction imported from Gnulib to work around a libc bug in GNU/Hurd.
man-db 2.7.0.1 (24 September 2014)
Fixes:
- Fix test suite in the case where the system supports high-precision timestamps but the file system containing the build directory does not.
man-db 2.7.0 (22 September 2014)
Upgrading from previous versions:
- For the first time since version 2.4.0, the database format has changed
slightly, so you will need to run
mandb --createafter installing the new version to rebuild your databases from scratch. (Distribution packages should do this automatically for system databases.)
Fixes:
lexgrognow filters terminal escape sequences out of cat pages before trying to parse them.- Tools that consider the terminal line length now prioritise the
COLUMNSenvironment variable above theTIOCGWINSZioctl. - Manpath elements are no longer canonicalised before being inserted into
the search path; this caused the use of incorrect catpaths in some cases.
This was broken by the
LANGUAGE-handling fixes in 2.5.4.
Improvements:
- Ship a
systemdtmpfilessnippet to clean up old cat files after a week. - The modification time of manual databases is now simply stored in the mtime of the database files themselves, rather than using a special row. This makes databases reproducible between otherwise-identical installations, as long as the underlying database has predictable behaviour. As a bonus, man-db now uses high-precision timestamps to determine whether it needs to update databases.
- Timestamps of manual pages are also now stored in the database with high precision and compared accordingly.
- Files are now ordered by first physical extent before reading them, for
substantial performance improvements in operations such as
mandbandman -K. man -Hshows a better error message if no browser is configured.zsoelimis now installed in$pkglibexecdir, to avoid clashes with other packages.
man-db 2.6.7.1 (10 April 2014)
Fixes:
- Remove test suite dependency on
realpath(1).
man-db 2.6.7 (10 April 2014)
Fixes:
- Fix a test failure when configured with
--enable-undoc. - Run the pager in
man's original working directory rather than in the manual hierarchy. (As a result of this fix, man-db now requires libpipeline >= 1.3.0.) mandbonly creates a cache directory tag if the catpath is different from the manpath, since it should only be created in directories that consist entirely of cached information.
man-db 2.6.6 (23 January 2014)
man-db is now revision-controlled using git (https://git-scm.com/). See
docs/HACKING for the location of the repository.
Fixes:
apropos's--andoption now works again; it was broken by the optimisations in 2.6.2.- Restore compatibility with Automake 1.10.
- Improve support for translation of common elements of help messages.
- Don't issue error messages when the database refers to a page that no longer exists.
- Pass macro and hyphenation language tags to
groffagain (broken in 2.6.5).
Improvements:
./configure --with-override-dir=OVERRIDEarranges to look for manual pages inDIR/OVERRIDEbefore each path elementDIR.
man-db 2.6.5 (27 June 2013)
Fixes:
man's--warningsoption works again on systems with versions ofgroffthat support it (broken in 2.6.4).manautomatically falls back toC.UTF-8and thenen_US.UTF-8if trying to find a UTF-8 locale on a system without/usr/share/i18n/SUPPORTED.
man-db 2.6.4 (23 June 2013)
Fixes:
man(1)andcatman(8)now document the default section list set at configure time.- Build fixes for Automake 1.13.
- man-db 2.6.0 arranged to search the full manpath when expanding
.sodirectives in manual pages (so that.so name.1works as well as.so man1/name.1), but this incorrectly did not take effect for manual pages that consist only of a.sodirective. This is now fixed.
Improvements:
- The
MANLESSenvironment variable is now treated as if it were a default value for the-roption toman: occurrences of the text$MAN_PNare expanded, and explicitly using the-roption overrides the default. - The (unfortunately still hardcoded) maximum length for paths to manual page hierarchies in the configuration file is now 511 characters rather than 49.
MANPATHentries now undergoglob(7)-style wildcard expansion, allowing entries such as/opt/*/man.
man-db 2.6.3 (17 September 2012)
Fixes:
- Build fixes for glibc 2.16 and Automake 1.12.
man-db 2.6.2 (18 June 2012)
Fixes:
aproposprints an error message and returns non-zero when it finds no matches. (Regression introduced in 2.5.1.)- The presence of a 64-bit GDBM database on the manpath no longer causes a
32-bit
manprocess to exit with a fatal error.
Improvements:
aproposis much faster when run with many arguments.whatismay be given the full path to an executable as an argument, in which case it will look up the base name of that executable in the appropriate parts of the manpath.
man-db 2.6.1 (14 February 2012)
Fixes:
--with-db=db*and--with-db=ndbmcompile again.- Translated manual pages are no longer displayed starting with a spurious blank line.
straycatstries to ensure thatcolis invoked withLC_CTYPEset to a UTF-8 locale.- Fix double-free in
mandbwhen encountering a symlink outside the manual hierarchy, thanks to Peter Schiffer.
Improvements:
mandbcreates a cache directory tag, per the Cache Directory Tagging Standard.- Add support for Lzip-compressed manual pages, thanks to Matias A. Fonzo.
- Running
man -w(with a new--pathalias) without a name now prints the manpath, for compatibility with othermanimplementations. Thevimviewdoc plugin makes use of this.
man-db 2.6.0.2 (13 April 2011)
Fixes:
- Fix a segfault when scanning links to empty pages.
- Once we've seen at least one record in a page's
NAMEsection, ignore any further records that don't include awhatisdescription, as they tend to be noise.
man-db 2.6.0.1 (10 April 2011)
Fixes:
- Ensure that the target of a symlink or
.sochain is always recorded as a real page. - Read a user-specified configuration file even if
HOMEis unset.
man-db 2.6.0 (9 April 2011)
Fixes:
- Fix build with versions of GNU
ldthat default to--no-copy-dt-needed-entries. - Fix failure to display manual pages in some encodings when installed setuid.
- Wrap long table cells in
man(1), fixing test failures withgroff1.21. - If an explicit section is passed to
man, then pages that match that section exactly will be preferred over pages that only have that section as a prefix. - Fix a segfault when
man -Ktries to display certain pages. - Fix a segfault in some situations when processes are killed by
SIGHUP,SIGINT, orSIGTERM.
Improvements:
- As promised in the release notes for man-db 2.5.8, man-db no longer ships its own copy of libpipeline. You must build and install that library separately.
- Search the full manpath when expanding
.sodirectives in manual pages. As part of this,.so name.1should now work as well as.so man1/name.1. lexgroghandles roff named glyphs andperldocstrings inNAMEsections.manno longer starts a pager if standard output is not a tty.- The
-soption towhatisandaproposnow takes a colon- or comma-separated list of sections, similar toman -S. mandberror output is neater whenstderris not a terminal.- Add basic support for the implementation of
nroff/troffin the Heirloom Documentation Tools. Title lengths are not properly set as yet, and many features are untested. mandbremovescat*and NLS subdirectories ofcatdirectories whose correspondingmandirectories no longer exist.mandbforcesSIGPIPEback to its default disposition on startup, to avoid noisy output in case it was started in a context whereSIGPIPEwas ignored.SECTIONentries in a user configuration file now override those in the system configuration file, rather than appending to them.- The default
lessprompt now includes "(press h for help or q to quit)" to help novices find their way around. - man-db may now be built to use Berkeley DB version 5 (
--with-db=db5).
man-db 2.5.9 (17 November 2010)
Fixes:
- Fix test failures on some systems. A change made in 2.5.8 was overly sensitive to directory ordering.
- Configuring with
--disable-nlsworks again.
man-db 2.5.8 (15 November 2010)
Fixes:
- Fix assertion failure on
man -lwith an uncompressed page and any of--no-hyphenation,--no-justification, or a non-English page. - 2.5.7 introduced a regression when running
catmanin some locales, most notably in the C locale: while converting the output to UTF-8,iconvwas run after the compressor rather than before it. This release fixes that.
Improvements:
- Add support for XZ-compressed manual pages, thanks to Darren Salt.
- Try underscore-separated subpages as well as hyphen-separated ones, thanks to Tanguy Ortolo.
- Build
libmanandlibmandbas shared libraries, reducing installed footprint by about 200K (at least on GNU/Linux). libintlis no longer shipped with man-db. If your system does not already have GNUlibintlinstalled and you want man-db's messages to be translated, then please install GNU libintl separately.- Warnings about unrecognised locales are now suppressed if the
DPKG_RUNNING_VERSIONenvironment variable is set (i.e. man-db is running within a Debian package's maintainer script), since the system locales are often out of sync with the C library in that context. Thanks to the Debian Perl maintainers for the idea. - Allow building with an external
libpipeline, which has been
split out from man-db. This is a transitional measure: a future version
of man-db will stop shipping its own copy of
libpipeline. mandbshould no longer repeatedly rescan manual page hierarchies when awhatisentry turns into a broken link.
man-db 2.5.7 (16 February 2010)
Fixes:
- If a subprocess exits before
manmanages to read all the output from it, it now drains the output file descriptor rather than immediately discarding it. - If
/usr/share/i18n/SUPPORTEDis available,manattempts to use it to ensure thatLC_CTYPEis set to an appropriate locale for the selected character set when invokingcol. This fixesLANG=C man -E UTF-8, as used by lintian. - Don't run tests if cross-compiling.
- Fix possible
mandbcrash whenMAN_MUST_CREATEis unset.
Improvements:
mancan now tellnroffto disable justification if the--no-justificationoption is used.- If the full path to an executable is given as an argument,
manwill try looking up the corresponding manual page in the appropriate part of the manpath, rather than just trying to format the text of the executable as a manual page. - In the GNU manual hierarchy layout, search
man<sec><ext>directories as well as justman<sec>(e.g./usr/share/man/man3pas well as/usr/share/man/man3). - By request,
mannow prefers getting a page from the best manual section over getting a page in the correct language. - All programs now support a
MAN_DEBUGenvironment variable which can be used in place of the-d/--debugoption. This is useful in some situations where a program is being called deep in a process tree. - man-db now builds with heirloom-doctools, thanks to Diego Pettenò of Gentoo.
- Add support for emulating
pipe()withsocketpair(), which is faster on some systems; thanks to Werner Fink of SUSE. - Cat pages are now always saved in UTF-8, and converted to the proper
encoding at display time, which means that cat pages can now be saved
regardless of locale. Note that a consequence of this is that cat pages
now include formatting information (e.g. overstriking) and need to be
run through
col(1)before display.
man-db 2.5.6 (26 August 2009)
Fixes:
- Exact-section database lookups were incorrectly returning all database
entries whose section names were prefixes of the requested section name.
In some cases this could confuse
mandbinto never believing that the database was up to date. - Fix handling of pages with comma-separated names ("foo, bar, baz") in
their
NAMEsections, broken by a change in 2.5.0 (!) to ignore manual page names containing spaces. - Fixed a buffer overflow in the pipeline library's line-reading functions. I don't believe this to be exploitable: at worst we might believe that there's some garbage at the end of manual pages (whose contents are untrusted anyway) and this bug typically resulted in a failed assertion the next time anything tried to read a line.
- Plugged two substantial memory leaks in the pipeline library.
whatisandaproposonly display any given manual page, or pointers to it, once.mannow setsless(1)'s environment up correctly for manual pages encoded in CP1251.manconvno longer confuses situations such as "this UTF-8 character is not representable in the target encoding" with "this text is not in UTF-8".
Improvements:
- The default configuration file now includes section 0, used on some systems to document C library header files.
make checknow passes in the presence of a UTF-8-awarecol, such as that in util-linux-ng.- The
man -Koption is now supported to search the full text of all manual pages. This was inspired by a similar option in the othermanpackage (currently at version 1.6f) currently maintained by Federico Lucifredi and formerly by Andries Brouwer, but I took advantage of man-db's pipeline library to implement it entirely in-process, without having to start a separategrepprocess for every manual page. In my tests with fairly typical searches across variously all manual pages or just one section, man-db's implementation ran between 3 and 10 times faster. - Database directories are now only created when there are corresponding manual page directories, not just because they're mentioned in the configuration file.
- By default,
manwill now try to interpret pairs of manual page names given on the command line as equivalent to a single manual page name containing a hyphen (e.g.man foo bar=>foo-bar(1)). This supports the common pattern of programs that implement a number of subcommands, allowing them to provide manual pages for each that can be accessed using similar syntax as would be used to invoke the subcommands themselves. Suggested by H. Peter Anvin, Federico Lucifredi, and others on the git mailing list. - The build process is now quieter by default. Use
./configure --disable-silent-rulesormake V=0if you don't like this or yourmake(1)doesn't support the non-standard extension required. make installnow installs the manual.manconvunderstands a wider range of Emacs-style coding tags.- Recommendations to change
MAN_DB_CREATES,MAN_DB_UPDATES, andMAN_CATS#defineoptions inmanconfig.hhave been replaced by newconfigureoptions--enable-automatic-create,--disable-automatic-update, and--disable-catsrespectively. Note that automatic user database creation is now off by default, as it is often too slow for the usefulness it adds; use--enable-automatic-createto enable it.
man-db 2.5.5 (14 March 2009)
Fixes:
- Pages that declare a non-default encoding in their preprocessor lines are now handled correctly.
- Fix an uninitialised variable when sorting manual page candidates that could lead to excessive memory allocation and possible crashes.
Improvements:
- man-db's
make checknow tests that all its own manual pages format without errors or warnings fromgroff, to ensure a better-quality release.
man-db 2.5.4 (24 February 2009)
Fixes:
- Build fixes for systems without GNU Make, and for systems without
gettext; this successfully covers at least FreeBSD. - The
distcleantarget now works ifpo4aisn't installed. - Exit as soon as possible if database writes return
ENOSPC. lexgrognow stops on any unrecognised roff request, rather than continuing and often littering the database with garbage.manno longer requires both standard input and standard output to be terminals in order to use the terminal line length. The line length from standard output is preferred if available.- The manpath was built completely wrongly when multiple entries were
present in
LANGUAGE: duplicates were handled strangely, and languages were effectively iterated in reverse order. It should be rather more sensible now.
Improvements:
- The
MAN_KEEP_STDERRenvironment variable can now be used to overrideman's default of discardingstderrwhenstdoutis a terminal. - Handling of terminal widths for cat pages is now configurable, using the
MINCATWIDTH,MAXCATWIDTH, andCATWIDTHconfiguration file directives. man -anow detects duplicate manual page candidates more reliably, and sorts them better.- Belarusian, Estonian, Greek, Latvian, Lithuanian, Macedonian, Romanian, Slovenian, and Ukrainian pages are now supported.
mancan now search for pages using regular expressions (with--regex) or shell wildcards (with--wildcard). By default this searches both page names and descriptions, likeapropos, but if the--names-onlyoption is used then it searches page names only, likewhatis.mancan now tellnroffto disable hyphenation if the--no-hyphenationoption is used.- man-db already searched for manual pages in
../manandmandirectories relative to each$PATHcomponent; it now searches in../share/manandshare/mandirectories too. - Groff 1.20 was recently released, including the
preconvpreprocessor. Although man-db has supportedpreconvto some extent since 2.4.4, man-db'sconfigurenow detects its presence and infers thatgroffsupports Unicode input using it;manalso now takes slightly better advantage ofpreconvthan before. - Per-locale
groffmacros are now loaded if possible, allowing us to take advantage of such things as localised versions of predefined strings and language-aware hyphenation. This only works with Groff 1.20.2 or better (not yet released), since earlier versions did not allow us to suppress warnings in the event that the appropriate macro file is not available.
man-db 2.5.3 (17 November 2008)
Fixes:
- Cleaned up a number of possible crashes, memory leaks, and missing error checks found by the Coverity Scan project.
- Fix build if
MAN_CATSis undefined. - If the
LINGUASenvironment variable is set while runningconfigure, it now controls building and installation of localised manual pages as well as program translations. - The
LANGUAGEenvironment variable is now tokenised properly, rather than only taking the first two characters of each element. - Fix build if
--disable-nlsis used oriconvis not available. mannow correctly propagates the exit code ofwhatisoraproposwhen called with the-for-koption respectively.
Improvements:
- A number of inconsistencies and readability problems with man-db's own manual pages have been cleaned up, thanks mainly to Yuri Kozlov.
- Reduce the number of warnings emitted when using an unrecognised locale.
manconvandzsoelimare now called internally rather than by executing external programs, to improve performance.- man-db now uses GDBM (
--with-db=gdbm) in preference to Berkeley DB (--with-db=dbor--with-db=dbNwhereNis 1, 2, 3, or 4) by default, since hardware improvements have rendered Berkeley DB's speed advantages negligible for our purposes and the relatively frequentSONAMEand on-disk format changes are not worth the hassle. Distributors should note that if they follow this change then they will need to arrange for databases to be rebuilt on upgrade to this version. - Manual pages may now be compressed with LZMA (although this is probably only worth it for very large pages).
- Duplicate manual page hierarchies due to symlinks (e.g.
/usr/man->/usr/share/man) are detected and removed from the search order. - A locale modifier (e.g.
@latin) in a directory name must now match the locale if the former is set, in addition to the language and territory. - Bare
.soincludes (e.g..so foo.1rather than.so man1/foo.1) now work, although only within the same manual page hierarchy for now.
man-db 2.5.2 (5 May 2008)
Fixes:
man -H(without a browser argument) was completely broken in 2.5.1 and is now fixed.manno longer breaks in Japanese locales when usinglessas a pager.
Improvements:
- The
--encodingoption tomancan now take a true character encoding rather than a*roffdevice; the latter was an unreliable, inflexible, and awkward way to select an output encoding. The old semantics are still supported for backward compatibility. - Whatis parsing stops at
.ieor.ifconditionals. - CJK locale specifications where the codeset component is equivalent to
but not stringwise-identical to UTF-8 (e.g.
zh_CN.utf8) are handled better. man(1)'sOPTIONSsection is ordered more comprehensibly.apropos,lexgrog,man,mandb, andwhatisignore encoding conversion errors for the last possible encoding of the source page. This helps, for example, with pages including misencoded non-ASCII names of authors; it usually seems better to allow these pages to pass with small errors than to break them entirely.
man-db 2.5.1 (28 January 2008)
Fixes:
- The manual is now built automatically, avoiding some ordering problems on
make distclean. - Manual pages are converted to the proper input encoding for
troffoutput as well asnroffoutput. - The
-t,-T,-X, and-Zoptions tomanwork again; in 2.5.0, they read input fromstdinrather than from the manual page. aproposandwhatisno longer segfault when given an explicit locale using-L.mannow understands thatgroff'sasciidevice takes ASCII input, not ISO-8859-1.manno longer discardsstderrwhen writing to a file or a pipe; this was broken by an overenthusiastic change in 2.5.0.manconvnow falls back to the next encoding in its list if any characters in an entire 64KB block fail to decode using the current encoding, as was originally intended.manconvis more careful about extractingcoding:directives from manual pages.- Ctrl-C and Ctrl-\ now work again at the prompt issued by
man -a.
Improvements:
- There is a new
--with-sectionsconfigureoption to change the default value ofSECTIONin the configuration file. - Automake is now used to generate Makefiles. Among other things, this
fixes
VPATHbuilds and some bugs in dependency generation, and should allow building with non-GNU versions of make. - man-db now uses the Gnulib portability library, allowing the removal of earlier haphazard portability code. While this results in a somewhat larger source distribution, it makes man-db easier to maintain and should make it easier to build on systems to which the maintainer does not have access.
- In the process of switching to Gnulib, the last vestiges of pre-C89 support have been removed; they were documented to be broken anyway.
- If the
MANROFFOPTenvironment variable is set,mannow appends its value to the*roffcommand line. mannow accepts a--recodeoption to output a source manual page converted to a specified encoding.- For compatibility with System V,
manaccepts-sas an alias for-S, and permits sections to be comma-separated as well as colon-separated. - All programs, except the obsolete
wrapper, now accept a--debugoption. (accessdb,lexgrog, andzsoelimwere lacking it.) mannow accepts a--warningsoption to enablegroffwarnings.
man-db 2.5.0 (7 October 2007)
Fixes:
mandb --quietnow suppresses several more warnings.- The output of
aproposno longer includes duplicates when multiple search terms are used.
Improvements:
- Databases are now created for non-English manual hierarchies. All database entries should be encoded in UTF-8; man-db converts from the character set of the manual hierarchy and to the character set specified in the user's locale as necessary.
- Per-locale directory handling has been improved. Directories such as
fr.UTF-8may be used for occasions when it is appropriate to specify the character set but not the country, and so a full locale name is inconvenient. - There is a new
manconvprogram which can try multiple possible encodings for a file, thus allowing UTF-8 manual pages to be installed in any directory even without an explicit encoding declaration. - A decompression library is now in place. This allows man-db to use
zlibto decompress gzipped files, and allows most of its uses of temporary files to be removed. The only remaining exceptions are cat file creation (which uses a temporary file in the cat tree rather than in/tmp) and viewing HTML manual pages (which uses a temporary directory). Otherwise, man-db should now work fine even with a read-only/tmpduring system recovery. - Cat pages are now saved in the background while the pager is active, so
manwill only need to block afterwards if the pager is exited very quickly. --with-*options are now available atconfiguretime for most of the auxiliary program locations that you might want to override.mannow supports theMANPAGERenvironment variable, overridingPAGER.apropos/whatisoutput is now truncated to the terminal width by default. As withman, this may be overridden using theMANWIDTHenvironment variable.lexgrognow ignores alleged manual page names containing spaces, as these usually indicate parsing errors or ill-formedNAMEsections and they clutter upaproposoutput badly. I'm only aware of one legitimate counterexample, the Intercal compiler "oo, ick", which no longer appears to be known by that name anyway; let me know if there are any others.mannow discardsstderrfrom formatting subprocesses when outputting to a pager, to avoid visual corruption from any error messages.- If the
MAN_KEEP_FORMATTINGenvironment variable is set to any non-empty value, thenmanwill preserve formatting characters in its output even when standard output is not a terminal. This may be useful for programs such aspinfothat callmanand can interpret its formatted output. - Setting
NOCACHEin the configuration file now preventsmanfrom ever creating cat pages automatically. aproposnow accepts the--andoption to display only items that match all the supplied keywords.
man-db 2.4.4 (12 February 2007)
man-db is now revision-controlled using
bzr. See docs/HACKING for the location
of the archive (including all CVS history, imported by Canonical).
Fixes:
- SECURITY: Fix a buffer overrun if using
-Hand the designated web browser (argument to-Hor$BROWSER) contains multiple%sexpansions. This is CVE-2006-4250. - Ignore
SIGINTandSIGQUITwhile running subprocesses, so that typing Ctrl-C doesn't killless(broken in 2.4.3). - Similarly, ignore
SIGPIPEin subprocesses. - Various fixes to
SIGCHLDhandling in pipeline library, preventing "waitpid failed: No child processes" errors. - Skip
execin configuration file commands (perhaps left over from old installations), which the pipeline execution library cannot handle directly.
Improvements:
- Add support for Chinese in the
--enable-mb-groffcase. lexgrognow handles pages with multiple descriptions more usefully, by displaying one description per output line.
man-db 2.4.3 (3 July 2005)
Fixes:
- Avoid problems creating databases on systems with badly broken clocks set before the Unix epoch.
- Fix detection of decompression programs, so that
mandoesn't attempt to execute man pages when it doesn't have a corresponding decompression program.
Improvements:
aproposandwhatisnow accept a--sectionoption to restrict their search to a particular manual section.- The pipeline execution library is now used for most calls to external programs, avoiding use of the shell.
- When
stdoutis not a terminal, man pages will be formatted in plain text without the use of backspace or ANSI formatting characters. - When invoking
apropos(man -k) orwhatis(man -f) as external programs,mannow only passes through command-line options understood by the respective programs. - Improve handling of locales with versions and/or modifiers.
- Add support for Croatian, Galician, Indonesian, Slovak, and Turkish pages.
- man-db may now be built to use Berkeley DB version 4 (
--with-db=db4).
Compatibility notes:
- Setting the line length of manual pages now requires
groff1.18 or later.
man-db 2.4.2 (20 September 2003)
Fixes:
- SECURITY: Fix a number of buffer overruns in configuration file handling,
ultimate source location, and
MANPATHprocessing. This is CVE CAN-2003-0620. - SECURITY: Restrict the use of the
DEFINEdirective in~/.manpathto code running with dropped privilege. Previously, thecompressorvariable could be used to run arbitrary code with raised privilege. This is CVE CAN-2003-0645. - Make sure to initialize
mandatastructures to zero. The uses of uninitialized memory resulting from this had been leading to random segfaults. - Drop privileges in order to be able to read pages in non-world-readable user manpaths while setuid.
mancan be built with--disable-setuidagain.man's locale support has been revamped. The encoding of source manual pages is no longer related to the encoding of the input passed to*roffor to*roff's terminal output device. These frequently differ, especially in UTF-8 locales but in other circumstances as well, and a "just send 8-bit data" approach is no longer adequate. If you are using a version ofgroffwith the Debian multibyte patch applied, pass the--enable-mb-groffoption to configure.- When using GDBM,
accessdbandaproposdid not return database entries in sorted order, since GDBM's key traversal interface is not lexicographically ordered. The database layer has been corrected to cope with this. - Directories found in strange places in manual hierarchies don't crash
mandb.
Improvements:
mannow callsmandbto update databases rather than doing it itself. This leaves cat pages as the sole remaining reason formanto be setuid.- The "undocumented" message is only displayed if a corresponding
executable is found on the
$PATH. - All programs that read
~/.manpathnow take a-Coption to cause them to read a different user configuration file instead. - The
--enable-debugoption toconfigurehas been removed. man-db'sMakefiles now always calculate full dependencies for C files. mandbcaches the contents of directories, significantly speeding up the purging of obsolete entries.mandbnow knows how to purge database entries corresponding to removed stray cat pages.- In addition, a pipeline execution library has been written, which will make it possible to eliminate all or almost all use of the shell in a future release. Unfortunately, time pressures due to the security issues above meant that the pipeline library was not well enough tested for use in this release, so it is present but unused. That will be the first item for 2.4.3.
man-db 2.4.1 (22 December 2002)
The man-db CVS repository has moved from sourceforge.net to savannah.nongnu.org.
Fixes:
- Don't enter an infinite loop when the
SYSTEMenvironment variable is set. mandoesn't segfault when trying to follow a broken symlink.mandbno longer corrupts databases when deleting entries that are part of multi keys.- Prevent a possible buffer overflow when encountering large multi keys.
- Man page names are escaped when globbing, so
[(1)can now be found even if the database is not up to date. - Correct an
access()check that led toman -X -l -producing no output. lexgrogcan now cope with man pages containing only a.solink.- Manual hierarchies with a specific encoding are put into the search path
in the correct order. A bug in
$LANGUAGEhandling had formerly meant thatdewould take precedence overde_DE.UTF-8.
Improvements:
man's behaviour when searching for page names that begin with a digit has been made more intuitive, as has its treatment of section names that are extensions of ones mentioned in the configuration file but are not themselves explicitly named as sections.- The default line length for pages formatted for terminal output has been
increased (reducing margin size) to match the default in
groff1.18. - Proofread the manual.
- The
-wflag tomanhas been changed to display the name of only the sourcenrofffile. A-Wflag has been introduced which displays the name of the cat file as well. If both flags are given toman, it will behave as before. - If
bzip2is installed, pages compressed withbzip2can now be displayed. - Add support for displaying an additional message when no man page is found, which can be used to direct users to a generic "undocumented" page.
- The manual hierarchy layout will now be guessed where possible if an
explicit
--enable-mandirsargument is not passed toconfigure.
man-db 2.4.0 (26 June 2002)
I have changed the package name to man-db, as the underscore was awkward.
Upgrading from version 2.3.x:
- The database format has changed slightly, so you will need to run
mandb --createafter installing the new version to rebuild your databases from scratch. (Distribution packages should do this automatically for system databases.)
Fixes:
- The GNU
nrofftest inconfigurenow works when/bin/shisash. - When scanning pages for
NAMEsections,lexgrogandmandbno longer accidentally eat the line after each occurrence of the no-op request.. man --localdrops privileges throughout to avoid problems with non-world-readable home directories.- Newly created cat directories are
chowned to themanuser when running as root. man --htmlno longer creates its temporary file with raised privileges, so that it now works with a setuidman.mandetects preprocessors correctly when setuid.- Various segfault fixes: explicitly null-terminate data returned by the
Berkeley DB library to avoid some rare crashes; don't reuse a freed
pointer in some cases of pages with multiple names; handle
MANPATHs containing::more safely. - Correctly parse manual pages using DOS line-ending conventions.
- Work around a misfeature in Berkeley DB: it pauses for several seconds if
asked to read a zero-length database, on the assumption that somebody is
still writing the metadata page.
manis generally better off just ignoring the database in this case. - Work around corrupted databases in the case where the
nextkeypointer chain contains a loop.
Improvements:
manlooks in the filesystem followed by the database, rather than the other way round. Unix filesystems are quite good databases for this purpose, and themandatabase is only superior when looking up names that don't have associated links in the filesystem.apropos --wildcard --exactmakes sure wildcards match an entire description or page name, unlikeapropos --wildcardwhich may match on word boundaries too.man's page-searching code has been substantially rearranged, and now only starts displaying pages when it has finished searching for candidates. This allows pages to be sorted more sensibly.- Manual pages are formatted in UTF-8 if that is the current locale's
character set. The
-Eoption is now available to force a particular encoding. Note that some versions of (e.g.)lesshave problems displaying UTF-8 in conjunction with backspace characters;groff1.18 should alleviate this by using ANSI colour escapes instead. - The
lessprompt string sets-PMas well as-Pm. - Invoking
manfrom withinlessnow sets the correct page title in the innerless. - Unless the
--match-caseoption is used,manwill search for pages case-insensitively. - Update the mechanism for setting the line length so that it also works
with
groff1.18. - The
-Rswitch is added to thelessprompt string, which is needed to display the ANSI colour escapes generated bygroff1.18 correctly. - The
$MANLESSenvironment variable may be used to override the normal creation of thelessprompt string. - Translation updates for French, German, and Spanish, and a new Catalan
translation. See
man/THANKS.
man_db-2.3.20 (7 September 2001)
Fixes:
- A typo in 2.3.19 caused character sets for many languages to be detected incorrectly. This especially affected multibyte languages.
- Long options in the environment variable
LESSare handled correctly. - When checking if cat pages need to be updated, check for different
timestamps rather than whether the cat page is newer, as otherwise we
were confused by tools like
tarthat preserve timestamps in their archives. Each cat page is now set to have the same mtime as its corresponding man page. - Look up the correct character set each time a page is displayed rather than just the first time, in case pages in several different character sets are viewed in a single session.
groffrequests are no longer assumed to be case-insensitive when scanning for preprocessors, so for examplemdoc's.Eqrequest isn't mistaken for the.EQwhich introduceseqncommands.- Escape arguments passed to the shell that might contain dangerous characters.
- Avoid an infinite loop if the
LANGUAGEenvironment variable is set but empty. - The
--createoption tomandbnow implies--no-purge. - Temporary files are handled with more secure permissions.
Improvements:
- Use a variant of
mkstemp()rather thantempnam(), to avoid classic race conditions. (I don't believe the races were usefully exploitable.) - Tolerate
whatisentries in a database that point to themselves. - Detect more translations of the
NAMEsection. - Add examples of man pages written in POD and SGML.
lexgrogis now installed in/usr/binby default, with proper argument parsing, an improved output format, and a man page. It is expected to be used by programs that need to validate man pages.- The
-H(--html) option tomanis now compiled in by default, and supports the BROWSER specification (as documented and amended).
man_db-2.3.19 (5 July 2001)
Fixes:
- The user configuration file
~/.manpathis no longer trusted when deciding whether to drop privileges. In the process, user cat directory handling has been improved. - Commands of the form
man -S "" fooformerly emptied the list of acceptable sections and then searched the database anyway, and commands of the formman -S ::: foosegfaulted. Both now use the standard list of sections. - The
HUPandTERMsignals are now handled better. straycatsprocessing invokescol -bxrather thancol-bx.- The
rootuser is now correctly allowed to update databases in system manpaths. aproposandwhatisno longer enter infinite recursion if a database contains an entry pointing to itself.
Improvements:
- When compiled with
--enable-setuid,manandmandbcan be installed non-setuid. In this mode, they will be unable to write cat pages in system directories or to modify system databases, but will otherwise operate correctly. This allows a single binary package to support setuid and non-setuid modes of operation. - The ordering of manual sections is read from
SECTIONdirectives in the configuration file rather than being hard-coded. - The
MANDB_MAPconfiguration file directive is documented more clearly. - Multiple
whatisentries separated by commas, break requests, and/or paragraph requests are handled more intelligently. - Fill control requests (
.nfand.fi) causelexgrogto assume a break at each newline. - Duplicate manpath entries (often generated in the course of national
language support) are removed, so that
man -aworks better. - man_db's binaries are installed unstripped by default.
- Since supporting certain layouts of manual page hierarchies causes
problems for others, the layout is now selectable via
configure. The default is to try all layouts. manonly does an on-the-fly update of the database caches when the--updateoption is given.- Manual pages are displayed with a line length appropriate to the current terminal. If a non-standard line length is used (i.e. the terminal is not between 66 and 80 characters wide) then cat pages will not be saved.
mandbtries to purge obsolete entries from its databases. Using the--createflag should now usually only be necessary in cases of database corruption.
man_db-2.3.18 (14 May 2001)
man_db-2.3.18 is an interim release under new maintenance by Colin Watson, merging much of the work done by former maintainers (Graeme Wilford and Fabrizio Polacco). It incorporates several years of changes made in the Debian GNU/Linux distribution's package of man_db.
Here are a few highlights, with the names of the maintainers responsible for them. As I am documenting after the fact of other people's changes of a few years ago, I have undoubtedly missed a number of fixes and improvements; I promise to keep track of these as I go along in future.
Fixes:
- Multiple security fixes, including better handling of temporary files, a format string vulnerability fix, and more careful dropping of privileges when running setuid. [Fabrizio, Colin]
- Databases no longer disappear temporarily while they are being regenerated. [Fabrizio]
- Corrected handling of locale environment variables. Setting several
colon-separated locales in
$LANGUAGEalso works now. [Colin] whatisandaproposare more careful about the possibility of a corrupted database. [Fabrizio, Colin]
Improvements:
- If
roothas private manual hierarchies, cat pages generated from them are no longer chowned to a less-privileged user. [Wilf] - Rewrote configuration file handling, adding
DEFINEdirectives to set paths to external programs. The configuration file is now calledman_db.conf. [Wilf] - Support FHS paths (
/usr/share/manand/var/cache/man) in preference to FSSTND paths (/usr/manand/var/catman). [Fabrizio] - Converted from
catgetsto GNUgettextfor national language support. [Fabrizio, Colin] - Several new and improved localized message catalogues and translated man pages. [Fabrizio, Colin, other contributors]
- Added
accessdbutility, which displays the contents of a manual page database. [Fabrizio] - Added user configuration file
~/.manpath, with the same syntax as the global configuration file. [Fabrizio] - Leading or trailing colons in the
MANPATHenvironment variable cause the manpath derived from configuration files to be prepended or appended respectively. A double colon in the middle of the environment variable causes the configuration file manpath to be inserted between the colons. [Fabrizio] - Added experimental
-Hand-Thtmloptions to take advantage ofgroff's new HTML driver. [Fabrizio] lexgrognow scans manual pages to guess which preprocessors are needed. [Fabrizio]- Create cat directories on the fly if necessary. [Fabrizio]
- Supply a wrapper which explicitly drops privileges to uid
manifmanormandbis run as root. In the future, splitting out setuid functions into a separate helper process may remove the need for this paranoia. [Fabrizio] - Add
--testoption tomandb, which merely reports errors in manual page hierarchies rather than actually creating or updating a database. [Fabrizio, Colin] - Manual pages may now be symlinks outside the mantree. This should pose no significant security concerns, and utilities such as GNU stow create such symlinks. [Colin]
- Deprecate
whatisreferences forman, and display a warning if displaying a page relies on going through awhatisreference. They often lead to confusingly non-obviously-deterministic behaviour, and guaranteeing thatmanwill honour them even when the database is out of date causes performance problems. [Colin]
man_db-2.3.11 (21 September 1995)
- The man_db manual is bundled in source form.
- Components of
$PATHnot in the config file were checked formansubdirectories. Now they are also checked for../man. - Untarring a new manual page (with a timestamp older than the relative cat
file) over the original did not cause
man/catmanto reformat the replacement. This is changed. As a side effect, untarring an unchanged man file over the original will also cause a reformat.
man_db-2.3.10 (13 July 1995)
Fixes:
- Global databases were not owned by setuid owner (if applicable). As a
consequence only
mandbcould update the databases unlessmanwas run by superuser. Stupid bug. - The keyword passed to
aproposnever matched the first word of any whatis line. FAVOUR_STRAYCATScode (if enabled), did not work properly.zsoelimdid not work as advertised.
Improvements:
-
manremoves its temporary files upon abnormal termination. -
aproposdoes proper word matching rather than the fuzzy matching of 2.3.5. E.g. supplying any of the keywords:ld.so,a.out,dynamic,linkerorloaderwill match the following entry:ld.so (8) - a.out dynamic linker/loader
whereas
a.outandloaderused to fail. -
man/whatis/aproposreturn with exit code 16 if manual page/file or keyword is not matched. Previously exit code 0 was used making it difficult for callers to know if the lookup was successful. -
Addition of German message catalogue.
-
aproposandman -kdo POSIX specified regex matching rather than keyword searches if the environment variablePOSIXLY_CORRECTis defined. -
Added glob-only support of native system manual hierarchies on HP-UX, OSF and Solaris operating systems. Improved the
whatisparsing code to cope with majority of HP-UX manual pages. -
Ported to NeXTstep.
man_db-2.3.5 (21 April 1995)
Added support for:
-
Non-standard section names i.e. multi-character
-
Compressed manual pages.
A new utility
zsoelimis included to correctly handlenroff.sorequests that point to a file which has been compressed. -
Compressed stray cats.
By definition, stray cats are not re-creatable as they have no relative source manual page. As they may have non-default compression extensions and may reside on read-only media, stray cats have the same compression support as manual pages.
-
FSSTND proposed "extension" support.
Specific package manual pages may be installed in the standard sections but with a package-unique extension appended as in
exit(3tcl)-../man/man3/exit.3tcl. Using the commandman -e tcl exitwould then display anexitmanual page with atclextension, if available. Of course,man 3tcl exitworks as always. -
FSSTND proposed NLS man subdirectories of the form
.../man/<locale>/man<sec>/. -
NLS message catalogue hooks.
Provision has been made for the programs to emit their messages in a language dependent form.
-
whatisreferred manual pages.Some manual pages contain relevant information for commands or programs that would not otherwise reference the page. The
whatispart of the manual page is used to create virtual links to these pages by all of the names mentioned within it. Examples include names such as.and:referencing the local shell manual page. -
catmanutility, used to pre-format the manual pages into cat pages. -
Operating systems other than Linux.
man_db has been reported to compile on the following platforms: Linux, SunOS, Solaris, Ultrix, OSF, HP-UX, AIX, IRIX (although portability does not extend to support of native manual tree structures on some of these systems, e.g. HP-UX).
-
Berkeley DB library routines.
This complements the support of both
gdbmandndbmwhich already existed. DB databases may be shared across platforms. -
$MANOPTSenvironment variable.The environment variable
MANOPTSmay be set to any string in command line option/argument format. It is parsed byman(1)prior to its actual command line. -
Per manual hierarchy cat directory locations.
It is possible to redirect your cat pages to other directories or even other file systems.
-
Per manual hierarchy
nroff/[tg]roffformat scripts.Ability to create custom formatter scripts that are called by
man(1)to enable format/display of non-standard manual pages or manual pages requiring a special macro package. -
Extension of
man -l.Arguments following
-lare interpreted as local files requiring format and display. Extensions are:man -l -formats and displaysstdin.man -l foo.1.gzdecompresses, formats and displaysfoo.1.gz.
-
Latin1 manual pages/choice of
nroffoutput device. -
Viewing of ASCII manual pages formatted for a latin1 output device on a 7 bit ASCII terminal (
-7). -
whatisandaproposutilities support regex and wildcard matching. -
checkman.Shell script utility that will find and display duplicated manual pages found across manual page hierarchies.
-
mkcatdirs.Shell script utility to create appropriate cat directories after installation and setup.
Conceptual improvements:
-
Replacement of single database with multiple modular databases. Easier integration of additional information into the databases in the future.
-
Both user and global databases share the same name
index.<db-type>, where<db-type>could bebt,db, orpaganddir. -
Databases contain
whatistext.makewhatisand textwhatisdatabases are redundant, althoughwhatisandaproposwill use the textwhatisdatabase for information if they cannot read from a relevant index database. -
Straycats handled without need for 'placeholders'.
-
Friendly
less(1)prompt.If
man(1)usesless(1)as its pager (dependent on both static and dynamic factors), the prompt is modified to suit the manual page being displayed. The modification performed is also changeable by the user. -
man_db manual.
man_db has a manual that covers the setup, maintenance and use of a generic online manual page system.
-
Modes of operation.
The man_db utilities can be compiled with various modes of operation in mind. E.g.
mancan be stopped from updating databases and/or creating cat files in situations where security is extremely important. See the man_db manual for details.
Speed improvements:
-
Background compression/saving of cat files.
Cat files are compressed and saved in the background, whilst the user is able to browse the formatted page directly.
-
Merge of
straycatsandmakewhatisintomandb.While
mandbhas slowed, it now incorporatesmakewhatisandstraycatsfunctionality and is much faster as a whole. 2.0a2 usedgrep/awk, 2.2 used C regex and 2.3 now useslexsourced C to strip out thewhatisinformation from the raw man or cat files. -
Berkeley DB support.
Provides lower database initialisation overhead as compared with
gdbm. -
Extremely fast
whatis(1)searches.whatis(1)uses keyed database lookups to retrieve whatis strings for standard (non regex/wildcard) searches.
Fixes:
-
Correct handling of
$MANSECT.The environment variable
MANSECTis no longer ignored. -
Acknowledgement of
$MANPATHorder.manpath elements are searched in the order specified.