[net.unix-wizards] diff -r -l doesn't work correctly

jromine@UCI-750B.ARPA@sri-unix.UUCP (08/24/84)

From:  John Romine <jromine@UCI-750B.ARPA>

Description:
	Diff doesn't list differences in files more than one subdirectory
	deep when using the -r & -l options.
Repeat-By:
	Run "diff -r -l d1 d2", where directories d1 and d2 have a
	subdirectory containing a file which differs.  Diff won't list it.
Fix:
	In diff/diffdir.c, routine calldiff(), add this conditional
	around the two close statements. (near line 356)

*** :diffdir.c	Thu Aug 23 17:56:28 1984
--- diffdir.c	Thu Aug 23 17:56:48 1984
***************
  		done();
  	}
  	close(pv[0]);
  	close(pv[1]);
  	while (wait(&status) != pid)

---------------
  		done();
  	}
+ if (wantpr) {
  	close(pv[0]);
  	close(pv[1]);
+ 	}
  	while (wait(&status) != pid)