Article View: news.software.nn
Article #3372Re: nn6.4.18: dumps core creating .newsrc?
From: Dave Heath
Date: Thu, 12 Nov 1992 20:22
Date: Thu, 12 Nov 1992 20:22
28 lines
1354 bytes
1354 bytes
vincent@cad.gatech.edu (Vincent Fox) writes:
>nn6.4.18 compiled under SunOS 4.1.1 for a Sun 3/260. Ask all the right
>questions, but dumps core and exits when trying to create a .newsrc.
>Any clues?
There is a bug. Here is a simple patch.
I don't know where to send this for inclusion in an official patch.
Anyone know?
*** global.c.old Fri Apr 19 13:40:43 1991
--- global.c Mon Nov 4 18:40:02 1991
***************
*** 482,487 ****
--- 482,488 ----
{
struct stat st;
+ if (!f) return 0; /* dave heath: fixed bug if no .newsrc */
if (fstat(fileno(f), &st) < 0) return 0;
return st.st_mtime;
}
END OF PATCH
-dave heath
Technical Details
Message-ID:
<1992Nov12.202202.22041@blaze.cs.jhu.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!blaze.cs.jhu.edu!iceblink!heathReferences:
<1ds07eINN9k4@cae.cad.gatech.edu>Show Full Headers
Complete Article Headers
Message-ID: <1992Nov12.202202.22041@blaze.cs.jhu.edu> Subject: Re: nn6.4.18: dumps core creating .newsrc? Date: Thu, 12 Nov 1992 20:22:02 GMT From: heath@iceblink.cs.jhu.edu (Dave Heath) References: <1ds07eINN9k4@cae.cad.gatech.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!blaze.cs.jhu.edu!iceblink!heath Newsgroups: news.software.nn Sender: news@blaze.cs.jhu.edu (Usenet news system) Organization: Johns Hopkins Computer Science Department, Baltimore, MD Lines: 28