🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #15713

Bug report (INN 1.5.1) : expireover / news.daily problem

#15713
From: James Youngman
Date: Mon, 10 Mar 1997 00:00
62 lines
2394 bytes
Executive Summary:-
	news.daily gives the -a argument to expireover, plus a list of expired 
files.   This is a usage error for expireover.


	I run "news.daily delayrm expireover" and so news.daily runs 
expireover with the -a flag as well as a file list, and this is a usage error 
for expireover:-

[expire/expireover.c]
 1177      ac -= optind;
 1178      av += optind;
 1179      if ((ReadSpool && ac) || (AddEntries && !ReadSpool))
 1180          Usage();       

The -a option sets AddEntries and ReadSpool.   The -z option sets SortedInput 
(which appears not to be germane).

However, INN 1.5.1's news.daily file does this:-

[ news.daily ] 
    50  EXPIREOVERFLAGS="-a"     

    57  for I
    58  do
    59      case "X$I" in  

    79      Xexpireoverflags=*)
    80          EXPIREOVERFLAGS=`expr "${I}" : 'expireoverflags=\(.*\)'`
    81          ;;  

   124      esac
   125  done 

   147  test -n "${RMFILE}" && {
   148      EXPIREFLAGS="${EXPIREFLAGS} -z${RMFILE}"
   149      EXPIREOVERFLAGS="${EXPIREOVERFLAGS} -z ${RMFILE}.$$"
   150  }
   151  test -z "${EXPIREOVERFLAGS}" && EXPIREOVERFLAGS=-s    


EXPIREOVERFLAGS starts out as "-a", but if delayrm is specified, line 149 is 
executed, and so expireover gets called like this:-

+ true
+ eval expireover -a -z /var/log/news/expire.rm.1732
++ expireover -a -z /var/log/news/expire.rm.1732
Usage:  expireover [flags] [file...]
+ set +x                     


For the time being I'll set expireoverflags="" on the news.daily command line; 
it looks to me like that's a viable workaround.

-- 
James Youngman       VG Gas Analysis Systems  The trouble with the rat-race 
Before sending advertising material, read     is, even if you win, you're 
http://www.law.cornell.edu/uscode/47/227.html         still a rat.


Technical Details
Message-ID: <5g0vpc$9o9$1@halon.vggas.com>
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

Show Full Headers
Complete Article Headers
Message-ID: <5g0vpc$9o9$1@halon.vggas.com>
Subject: Bug report (INN 1.5.1) : expireover / news.daily problem
Date: Mon, 10 Mar 1997 00:00:00 +0000
From: JYoungman@vggas.com (James Youngman)
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: 224382654
Organization: VG Gas Analysis Systems
Keywords: bug report
Newsgroups: news.software.nntp