Relay-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site seismo.UUCP Posting-Version: version B 2.10.2 9/3/84; site genrad.UUCP Path: seismo!harvard!talcott!panda!genrad!sources-request From: sources-request@genrad.UUCP Newsgroups: mod.sources Subject: mdep patch #1 Message-ID: <891@genrad.UUCP> Date: 14 Jun 85 13:48:48 GMT Sender: john@genrad.UUCP Organization: Uncle Bene's Farm Lines: 26 Approved: john@genrad.UUCP >From: ihnp4!amdcad!idi!bene!luke!steven What follows is a patch to the mdep program I recently posted. This change was sent to me by Viet Hoang (ihnp4!dwx3bS!vqh), and he says that it makes the program SysIII/SysV compatible. I've also recently spoken with others who suggest that there is a public domain directory traversal library available. While I don't have it now, if I get it I'll change things to use it. The patch should feed nicely with: s | patch -d /usr/local/blurfl Steven ======================================================================== Description: This patch changes the scanf format string to make it compatible across different versions of UN*X. Index: mdep.c 405c405 < count = sscanf (lbuf, "%*[#$]%*[ \t]include%s", dep); --- > count = sscanf (lbuf, "%*[#$] include%s", dep); Relay-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site seismo.UUCP Posting-Version: version B 2.10.2 9/3/84; site genrad.UUCP Path: seismo!harvard!think!mit-eddie!genrad!sources-request From: sources-request@genrad.UUCP Newsgroups: mod.sources Subject: cpg bug fix #1 Message-ID: <898@genrad.UUCP> Date: 17 Jun 85 16:06:36 GMT Sender: john@genrad.UUCP Lines: 23 Approved: john@genrad.UUCP From: decvax!tektronix!reed!omen!caf The strrchr call on line 129 should use '/' (as do the other strrchr calls) rather than "/" as distributed. OK, here it is in a form suitable for "patch"ing *** cpg.orig Mon Jun 17 10:59:25 1985 --- cpg.c Mon Jun 17 10:59:37 1985 *************** *** 127,131 extern int optind; /* option index */ ! if (pgm = strrchr (pgm, "/")) pgm++; /* set program name */ else pgm = pgm; --- 127,131 ----- extern int optind; /* option index */ ! if (pgm = strrchr (pgm, '/')) pgm++; /* set program name */ else pgm = pgm;