Bug 223559 - man does not find catpages if the manN sub-directory is missing
Summary: man does not find catpages if the manN sub-directory is missing
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Wolfram Schneider
URL:
Keywords:
Depends on:
Blocks: 212417
  Show dependency treegraph
 
Reported: 2017-11-09 11:22 UTC by Wolfram Schneider
Modified: 2017-12-08 10:48 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schneider freebsd_committer freebsd_triage 2017-11-09 11:22:39 UTC
I tried to run man(1) for catpages only. It does not work if the corresponding  manN sub-directory is missing

How to repeat:
$ mkdir man man/cat1
$ man cat | gzip > man/cat1/cat.1.gz
$ man -M man cat
No manual entry for cat

Workaround: create a dummy, empty manN sub-directories.
$ mkdir man/man1
$ man -M man cat
[ now it is working ]
Comment 1 commit-hook freebsd_committer freebsd_triage 2017-12-04 12:51:29 UTC
A commit references this bug:

Author: bapt
Date: Mon Dec  4 12:51:05 UTC 2017
New revision: 326527
URL: https://svnweb.freebsd.org/changeset/base/326527

Log:
  Only skip looking for manpages if both man directory and cat directory
  are not existing.

  This allows man(1) to read catpages when no man directories are available at all

  PR:		223559
  Reported by:	wosch
  MFC after:	3 days

Changes:
  head/usr.bin/man/man.sh
Comment 2 commit-hook freebsd_committer freebsd_triage 2017-12-08 10:48:22 UTC
A commit references this bug:

Author: bapt
Date: Fri Dec  8 10:47:24 UTC 2017
New revision: 326687
URL: https://svnweb.freebsd.org/changeset/base/326687

Log:
  MFC r326527:

  Only skip looking for manpages if both man directory and cat directory
  are not existing.

  This allows man(1) to read catpages when no man directories are available at all

  PR:		223559
  Reported by:	wosch

Changes:
_U  stable/11/
  stable/11/usr.bin/man/man.sh
Comment 3 commit-hook freebsd_committer freebsd_triage 2017-12-08 10:48:24 UTC
A commit references this bug:

Author: bapt
Date: Fri Dec  8 10:47:30 UTC 2017
New revision: 326688
URL: https://svnweb.freebsd.org/changeset/base/326688

Log:
  MFC r326527:

  Only skip looking for manpages if both man directory and cat directory
  are not existing.

  This allows man(1) to read catpages when no man directories are available at all

  PR:		223559
  Reported by:	wosch

Changes:
_U  stable/10/
  stable/10/usr.bin/man/man.sh