NNTPC: truncated history file entries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nntpcache-1.0.2 writes incomplete (truncated) history file entries for
articles with `_` in the path.  For example:

63   BsoftadURa2N_7MB.X@clari.net
news.connix.com/clari/tw/new

The correct path of the article is news.connix.com/clari/tw/new_media/...

I believe the problem is in article.c, and can be fixed with the
following patch:


*** /usr/local/src/nntpcache-1.0.2/article.c~	Fri Feb 21 10:01:26 1997
--- /usr/local/src/nntpcache-1.0.2/article.c	Tue Mar 11 10:17:22 1997
***************
*** 229,235 ****
  	} 
  	;{
  		char buf[MAX_HOST+MAX_GROUP+32];
! 		char *p = strchr (artfile, '_');
  		if (p)
  			*p = '\0';
  		sprintf(buf, "%.127s/%.287s", CurrentDir, artfile);
--- 229,235 ----
  	} 
  	;{
  		char buf[MAX_HOST+MAX_GROUP+32];
! 		char *p = strstr (artfile, "_head");
  		if (p)
  			*p = '\0';
  		sprintf(buf, "%.127s/%.287s", CurrentDir, artfile);

-- 

Ronald Florence			Maple Lawn Farm, Stonington, CT
ron@mlfarm.com			http://www.connix.com/~mlfarm


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux