Another bugfixes

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

 



Hello,


   recently I've fixed some  bugs in NNTPCACHE namely:

- article without article_number failed with 423 Bad article number
- listgroup unnecessesary fetched two times from server when
     listgroup group_name was used
- list subscriptions failed with 503 No list of subscriptions available
     after group xxx command


You'll find the patch below (it should be applied over 
nntpcache-1.0.7.1.patchy). 


	Regards, 

---------------------------------------------------------------------------
----                                                                   ----
----   Marian Durkovic                        network  manager         ----
----                                                                   ----
----   Slovak Technical University            Phone: + 421 7 3596-666  ----
----   Computer Centre, Nam. Slobody 17       Fax:   + 421 7 394-351   ----
----   812 43 Bratislava, Slovak Republic     E-mail: marian@bts.sk    ----
----                                                                   ----
---------------------------------------------------------------------------


--- ../nntpcache-1.0.7.1.patchy/group.c	Thu Nov 20 15:55:29 1997
+++ group.c	Tue Dec  2 11:31:45 1997
@@ -192,7 +192,7 @@
 		return FALSE;
 good:
 	CurrentGroupNode = n;
-	CurrentGroupArtNum = lo;
+	CurrentGroupArtNum = getLo(n);
 	CurrentGroupScfg = CurrentScfg = scfg;
 	strcpy (CurrentGroup, group);
 	return TRUE;
@@ -352,7 +352,7 @@
 		n=newsgroup_find_add(group, NULL, FALSE);
 		if (n)
 		{
-			if (n->group_change_time && n->listgroup_time > n->group_change_time)
+			if (n->group_change_time && n->listgroup_time >= n->group_change_time)
 			{
 #ifdef READ_LOCKS
 				n->read_locks--;
--- ../nntpcache-1.0.7.1.patchy/list.c	Thu Nov 20 15:00:32 1997
+++ list.c	Tue Dec  2 11:31:52 1997
@@ -490,7 +490,7 @@
 	if (list->file)
 	{
 		char f[MAX_FILE];
-		sprintf(f, "list.%.127s", list->name);
+		sprintf(f, "%.127s/list.%.127s", con.cacheDir, list->name);
 		fp=fopen(f, "r");
 		if (!fp)
 		{


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

Powered by Linux