Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Dec 2017 10:47:30 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r326688 - stable/10/usr.bin/man
Message-ID:  <201712081047.vB8AlUsx064102@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Dec  8 10:47:29 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

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

Modified: stable/10/usr.bin/man/man.sh
==============================================================================
--- stable/10/usr.bin/man/man.sh	Fri Dec  8 10:47:24 2017	(r326687)
+++ stable/10/usr.bin/man/man.sh	Fri Dec  8 10:47:29 2017	(r326688)
@@ -176,7 +176,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?201712081047.vB8AlUsx064102>