[comp.bugs.4bsd] missing parentheses in man.c

chris@mimsy.UUCP (08/30/87)

Index:	ucb/man.c 4.3BSD Fix

Description:
	The man program is missing a () pair.

Repeat-By:
	Examination.

Fix:
	This also includes /usr/local/man on the default manual path.

RCS file: RCS/man.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -c2 -r1.1 -r1.2
*** /tmp/,RCSt1013198	Sun Aug 30 07:30:20 1987
--- /tmp/,RCSt2013198	Sun Aug 30 07:30:23 1987
***************
*** 47,51 ****
  int	nomore;
  char	*CAT	= CAT_;
! char	*manpath = "/usr/man";
  char	*strcpy();
  char	*strcat();
--- 47,51 ----
  int	nomore;
  char	*CAT	= CAT_;
! char	*manpath = "/usr/local/man:/usr/man";
  char	*strcpy();
  char	*strcat();
***************
*** 160,164 ****
  {
  
! 	if (ac > 0 && strcmp(av[0], "-M") == 0 || strcmp(av[0], "-P") == 0) {
  		if (ac < 2) {
  			fprintf(stderr, "%s: missing path\n", av[0]);
--- 160,164 ----
  {
  
! 	if (ac > 0 && (strcmp(av[0], "-M") == 0 || strcmp(av[0], "-P") == 0)) {
  		if (ac < 2) {
  			fprintf(stderr, "%s: missing path\n", av[0]);
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690)
Domain:	chris@mimsy.umd.edu	Path:	seismo!mimsy!chris