🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1368

GNU diff 1.2 bug & SysVr3 usage

#1368
From: James Van Artsdalen
Date: Fri, 07 Oct 1988 04:05
41 lines
1412 bytes
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
Technical Details
Message-ID: <8913@bigtex.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!uunet!tut.cis.ohio-state.edu!cs.utexas.edu!milano!bigtex!james

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!uunet!tut.cis.ohio-state.edu!cs.utexas.edu!milano!bigtex!james
From: james@bigtex.uucp (James Van Artsdalen)
Newsgroups: gnu.utils.bug
Subject: GNU diff 1.2 bug & SysVr3 usage
Message-ID: <8913@bigtex.uucp>
Date: 7 Oct 88 04:05:52 GMT
Organization: F.B.N. Software, Austin TX
Lines: 41