Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Dec 2017 12:51:05 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326527 - head/usr.bin/man
Message-ID:  <201712041251.vB4Cp5aQ077116@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Mon Dec  4 12:51:05 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

Modified:
  head/usr.bin/man/man.sh

Modified: head/usr.bin/man/man.sh
==============================================================================
--- head/usr.bin/man/man.sh	Mon Dec  4 12:33:46 2017	(r326526)
+++ head/usr.bin/man/man.sh	Mon Dec  4 12:51:05 2017	(r326527)
@@ -201,7 +201,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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712041251.vB4Cp5aQ077116>