🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

3 total messages Started by Masatoshi Watanabe Tue, 01 Dec 1992 07:41
INN funsen-ki #5
#269
Author: Masatoshi Watanabe
Date: Tue, 01 Dec 1992 07:41
35 lines
1913 bytes
$@$J$+$J$+%3%s%U%#%.%e%l!<%7%g%sJT$KF~$i$J$$(J INN $@J3@o5-$G$9!#(J

INN $@$K$O(J grephistory $@$H8@$&!"(Jhistory file $@$r8!:w$7$F(J Message-ID $@$+$i$=(J
$@$N5-;v$,B8:_$9$k$+$I$&$+D4$Y$?$j!"(Jfile $@$N(J path $@$rF@$?$j$9$k%W%m%0%i%`(J
$@$,ImB0$7$F$*$j!"(Jihave/sendme $@MQ$N(J script $@Cf$G;HMQ$5$l$F$$$^$9!#(J

$@$H$3$m$,!"4{$K(J cancel $@$^$?$O(J expire $@$5$l$?5-;v$r8!:w$7$h$&$H$9$k$H!"(J
Bad text line for $@1>!9$H8@$C$F;_$C$F$7$^$$$^$9!#(J

$@$=$3$G!"0J2<$N$h$&$K=$@5$7$F$_$^$7$?!#(J


*** grephistory.c.orig	Mon Nov 30 14:42:06 1992
--- grephistory.c	Mon Nov 30 15:17:49 1992
***************
*** 74,80 ****
      for (i = 2; (c = getc(F)) != EOF && c != '\n'; )
  	if (c == HIS_FIELDSEP && --i == 0)
  	    break;
!     if (c != HIS_FIELDSEP) {
  	(void)fprintf(stderr, "Bad text line for \"%s\", %s\n",
  		key, strerror(errno));
  	exit(1);
--- 74,80 ----
      for (i = 2; (c = getc(F)) != EOF && c != '\n'; )
  	if (c == HIS_FIELDSEP && --i == 0)
  	    break;
!     if (c != HIS_FIELDSEP && c != EOF && c != '\n') {
  	(void)fprintf(stderr, "Bad text line for \"%s\", %s\n",
  		key, strerror(errno));
  	exit(1);

--
	Masatoshi Watanabe   <watanabe@izanami.material.tohoku.ac.jp>
	Dept.of Metallurgy, Faculty of Engineering, Tohoku Univ.
Re: INN funsen-ki #5
#271
Author: Takahiro Kanbe
Date: Thu, 03 Dec 1992 02:13
128 lines
4198 bytes
In article <WATANABE.92Dec1164052@izanami.material.tohoku.ac.jp>
	watanabe@izanami.material.tohoku.ac.jp (Masatoshi Watanabe) writes:
> $B$H$3$m$,!"4{$K(B cancel $B$^$?$O(B expire $B$5$l$?5-;v$r8!:w$7$h$&$H$9$k$H!"(B
> Bad text line for $B1>!9$H8@$C$F;_$C$F$7$^$$$^$9!#(B
$B$3$l$K$D$$$F$O!"0JA0$K(Bnews.software.nntp$B$K%P%0!&%l%]!<%H$H%U%#%C%/(B$B%9$r(B
$B%]%9%H$7$^$7$?$,!"(B1.3$B$G<h$j9~$^$l$FD>$kMM$G$9!#(B

$B$?$@!"(Brich$B;a$OK\6H$,K;$7$$$N$H!"$D$$$3$N4V$*;RMM(B$B$,CB@8$7$?$=$&$G!"(B1.3
$B$N@5<0%j%j!<%9$O!"$^$@@h$K$J$k$_$?$$$G$9!#(B

$B<jA0$_$=$G$9$,!"2?$+$N;29M$K$J$l$P9,(B$B$$$G$9!#(B

From: taka@fxis.fujixerox.co.jp (Takahiro Kanbe)
Newsgroups: news.software.nntp
Subject: INN-1.2: a bug report of grephistory(1).
Distribution: inet

* INN 1.2 Bug report.

Subject: grephistory(1) exit with "Bad text line for ..." message.

Description:
	When grephistory(1) execute by ihave or sendme, and get a
	expired article's message-id which remains in the history,
	grephistory(1) exit with the message bellow:

		"Bad text line for <message-id>"

	So, the rest message-ids will not be processed.

Repeat-By:
	Execute grephistory with -i or -s option, and input such
	message-id.

Sample-Fix:
*** expire/grephistory.c.ORIG	Mon Sep 21 15:33:48 1992
--- expire/grephistory.c	Fri Oct  2 21:17:28 1992
***************
*** 52,58 ****
  /*
  **  Given a DBZ value, seek to the right spot.
  */
! STATIC void
  HistorySeek(F, p, key)
      register FILE	*F;
      register char	*p;
--- 52,58 ----
  /*
  **  Given a DBZ value, seek to the right spot.
  */
! STATIC BOOL
  HistorySeek(F, p, key)
      register FILE	*F;
      register char	*p;
***************
*** 75,84 ****
  	if (c == HIS_FIELDSEP && --i == 0)
  	    break;
      if (c != HIS_FIELDSEP) {
! 	(void)fprintf(stderr, "Bad text line for \"%s\", %s\n",
! 		key, strerror(errno));
! 	exit(1);
      }
  }
  
  
--- 75,84 ----
  	if (c == HIS_FIELDSEP && --i == 0)
  	    break;
      if (c != HIS_FIELDSEP) {
! 	/* not always 3 field, simply ignore. */
! 	return FALSE;
      }
+     return TRUE;
  }
  
  
***************
*** 164,170 ****
  	if (value.dptr == NULL)
  	    /* Doesn't exist. */
  	    continue;
! 	HistorySeek(F, value.dptr, key.dptr);
  	while (GetName(F, Name, &More)) {
  	    if (stat(Name, &Sb) >= 0) {
  		(void)printf("%s\n", Name);
--- 164,171 ----
  	if (value.dptr == NULL)
  	    /* Doesn't exist. */
  	    continue;
! 	if (HistorySeek(F, value.dptr, key.dptr) != TRUE)
! 	  continue;
  	while (GetName(F, Name, &More)) {
  	    if (stat(Name, &Sb) >= 0) {
  		(void)printf("%s\n", Name);
***************
*** 288,294 ****
  	FullLine(F, value.dptr);
  	exit(0);
      }
!     HistorySeek(F, value.dptr, key.dptr);
  
      /* Loop until we find an existing file. */
      while (GetName(F, Name, &More)) {
--- 289,295 ----
  	FullLine(F, value.dptr);
  	exit(0);
      }
!     if (HistorySeek(F, value.dptr, key.dptr) == TRUE) {
  
      /* Loop until we find an existing file. */
      while (GetName(F, Name, &More)) {
***************
*** 298,303 ****
--- 299,305 ----
  	}
  	if (!More)
  	    break;
+     }
      }
  
      if (What == 'n')

--
Takahiro Kanbe <taka@fxis.fujixerox.co.jp>	FXIS / Network Team.
--
$B?@8M!!N4(B$BGn!J$+$s$Y!!$?$+$R$m!K(B		FXIS / Network Group.
					taka@fxis.fujixerox.co.jp
Re: INN funsen-ki #5
#272
Author: Masatoshi Watanabe
Date: Thu, 03 Dec 1992 02:54
9 lines
1201 bytes
>>>>> On 3 Dec 1992 02:13:53 GMT, taka@fxis.fujixerox.co.jp (Takahiro Kanbe) said:

taka> $@$?$@!"(Jrich$@;a$OK\6H$,K;$7$$$N$H!"$D$$$3$N4V$*;RMM$,CB@8$7$?$=$&$G!"(J1.3
taka> $@$N@5<0%j%j!<%9$O!"$^$@@h$K$J$k$_$?$$$G$9!#(J

$@$*$)!*$=$l$O$*$a$G$H$&$4$6$$$^$9!#$H!"$3$3$K=q$$$F$b$7$g$&$,$J$$$+!#(J (^_^;
--
	Masatoshi Watanabe   <watanabe@izanami.material.tohoku.ac.jp>
	Dept.of Metallurgy, Faculty of Engineering, Tohoku Univ.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads