diff -r -l doesn't work correctly
jromine at UCI-750B.ARPA
jromine at UCI-750B.ARPA
Fri Aug 24 11:12:42 AEST 1984
From: John Romine <jromine at 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)
More information about the Comp.unix.wizards
mailing list