[gnu.utils.bug] GNU diff 1.2 bug & SysVr3 usage

james@bigtex.uucp (James Van Artsdalen) (10/07/88)

diff prints the wrong error if -N is selected.

/usr4/src/diff> mkdir q w
/usr4/src/diff> mkdir q/e
/usr4/src/diff> ../Diff -cN q w
Only in q: e
(ERR:1)
/usr4/src/diff> ../Diff -cN q w
q/e is a directory but w/e is not(ERR:2)
/usr4/src/diff> rm -r q/*
/usr4/src/diff> touch q/e
/usr4/src/diff> ../Diff -cN q w
/usr4/src/diff> ../Diff -c q w
Only in q: e
(ERR:1)
/usr4/src/diff> 
----
When using -DUSG, the file usg.h is missing, but apparently not
needed: it suffices to "touch usg.h".  For SysVr3, the following
change must be made:

*** diff.h	Wed Oct  5 18:02:06 1988
--- ../my.diff/diff.h	Thu Oct  6 22:26:46 1988
***************
*** 29,31 ****
  #include <time.h>
! #include <ndir.h>
  #include <fcntl.h>
--- 29,31 ----
  #include <time.h>
! #include <dirent.h>
  #include <fcntl.h>
***************
*** 32,33 ****
--- 32,34 ----
  #include "usg.h"
+ #define direct dirent
  #else
-- 
James R. Van Artsdalen   ...!uunet!utastro!bigtex!james   "Live Free or Die"
Home: 512-346-2444 Work: 338-8789   10926 Jollyville Rd #901 Austin TX 78759