🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #10041

Re: News.daily works incorrectly

#10041
From: Anthony J. Lill
Date: Mon, 12 Aug 1996 00:00
66 lines
2845 bytes

Expire is probably dying before it can un-pause the server. I 
just fixed a problem with expire where it was configured with
_PATH_HISTORY not in the same directory as _PATH_NEWSLIB, and
on different filesystems. Expire failed to replace the history
files and failed to restart the server.

The following patch will fix this bug. If not, then expire is dying
for some other reason.

Index: expire.c
===================================================================
RCS file: /var/spool/src/bin/inn/expire/expire.c,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 expire.c
*** expire.c	1996/07/18 17:29:25	1.1.1.2
--- expire.c	1996/08/06 17:30:11
***************
*** 70,76 ****
  STATIC BOOL		EXPsizing;
  STATIC BOOL		EXPtracing;
  STATIC BOOL		EXPusepost;
! STATIC char		EXPnewslib[] = _PATH_NEWSLIB;
  STATIC char		ACTIVE[] = _PATH_ACTIVE;
  STATIC char		SPOOL[] = _PATH_SPOOL;
  STATIC int		nGroups;
--- 70,76 ----
  STATIC BOOL		EXPsizing;
  STATIC BOOL		EXPtracing;
  STATIC BOOL		EXPusepost;
! STATIC char		*EXPnewslib;
  STATIC char		ACTIVE[] = _PATH_ACTIVE;
  STATIC char		SPOOL[] = _PATH_SPOOL;
  STATIC int		nGroups;
***************
*** 1019,1024 ****
--- 1019,1032 ----
      NHistorydir = COPY(buff);
      (void)sprintf(buff, "%s.pag", NHistory);
      NHistorypag = COPY(buff);
+ 
+     /* Set our newslib to be the same directory that the history file
+        is in */
+     EXPnewslib = COPY(HistoryText);
+     if( (p = strrchr( EXPnewslib, '/' )) == NULL )
+ 	EXPnewslib = _PATH_NEWSLIB;
+     else
+ 	*p = '\0';
  
      if (!Writing)
  	out = NULL;

-- 
Tony Lill,                         Tony.Lill@AJLC.Waterloo.ON.CA
President, A. J. Lill Consultants                 (519) 241 2461
539 Grand Valley Dr., Cambridge, Ont.    fax/data (519) 650 3571
--------------- http://www.ajlc.waterloo.on.ca/ ----------------
"Welcome to All Things UNIX, where if it's not UNIX, it's CRAP!"
-- 
Tony Lill,                         Tony.Lill@AJLC.Waterloo.ON.CA
President, A. J. Lill Consultants                 (519) 241 2461
539 Grand Valley Dr., Cambridge, Ont.    fax/data (519) 650 3571
--------------- http://www.ajlc.waterloo.on.ca/ ----------------

Technical Details
Message-ID: <Dw1AEM.1nG@matrix.ajlc.waterloo.on.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <320EC849.1E9F@gb.co.cn>

Show Full Headers
Complete Article Headers
Message-ID: <Dw1AEM.1nG@matrix.ajlc.waterloo.on.ca>
Subject: Re: News.daily works incorrectly
Date: Mon, 12 Aug 1996 00:00:00 +0000
From: ajlill@matrix.ajlc.waterloo.on.ca (Anthony J. Lill)
References: <320EC849.1E9F@gb.co.cn>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 173924333
Sender: ajlill@matrix.ajlc.waterloo.on.ca (Anthony J. Lill)
Organization: The MATRIX BBS
Newsgroups: news.software.nntp