svn commit: r326687 - stable/11/usr.bin/man

Baptiste Daroussin bapt at FreeBSD.org
Fri Dec 8 10:47:25 UTC 2017


Author: bapt
Date: Fri Dec  8 10:47:24 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

Modified:
  stable/11/usr.bin/man/man.sh
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.bin/man/man.sh
==============================================================================
--- stable/11/usr.bin/man/man.sh	Fri Dec  8 10:44:44 2017	(r326686)
+++ stable/11/usr.bin/man/man.sh	Fri Dec  8 10:47:24 2017	(r326687)
@@ -199,7 +199,7 @@ find_file() {
 		catroot="$catroot/$3"
 	fi
 
-	if [ ! -d "$manroot" ]; then
+	if [ ! -d "$manroot" -a ! -d "$catroot" ]; then
 		return 1
 	fi
 	decho "  Searching directory $manroot" 2


More information about the svn-src-all mailing list