changeset 280:9c54bf672ca1 noffle

[svn] * src/client.c: doGetGrps() was supposed to fall back to "LIST" if "LIST ACTIVE" wasn't recognised. However, it would only do this if a group pattern was given, which was downright wrong. Now fixed.
author bears
date Tue, 24 Dec 2002 09:08:59 +0000
parents 49b452b667a6
children 5eece4dfd945
files ChangeLog src/client.c
diffstat 2 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Nov 17 15:18:19 2002 +0000
+++ b/ChangeLog	Tue Dec 24 09:08:59 2002 +0000
@@ -1,3 +1,10 @@
+Tue Dec 24 2002 Jim Hague <jim.hague@acm.org>
+
+* src/client.c: doGetGrps() was supposed to fall back to "LIST" if
+  "LIST ACTIVE" wasn't recognised. However, it would only do this
+  if a group pattern was given, which was downright wrong. Now
+  fixed.
+	
 Sun Nov 17 2002 Jim Hague <jim.hague@acm.org>
 
 * src/util.c: localTimeDiff() cached its value and recalculated it every
--- a/src/client.c	Sun Nov 17 15:18:19 2002 +0000
+++ b/src/client.c	Tue Dec 24 09:08:59 2002 +0000
@@ -1,7 +1,7 @@
 /*
   client.c
 
-  $Id: client.c 403 2002-11-10 11:32:17Z bears $
+  $Id: client.c 412 2002-12-24 09:08:59Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -523,9 +523,10 @@
      * Try LIST instead of LIST ACTIVE in case server doesn't
      * support LIST ACTIVE.
      */
-    if ( pattern[ 0 ] != '\0' && stat != STAT_GRPS_FOLLOW )
+    if ( stat != STAT_GRPS_FOLLOW )
     {
-	*noServerPattern = TRUE;
+	if ( pattern[ 0 ] != '\0' )
+	    *noServerPattern = TRUE;
 	if ( ! putCmd( "LIST" ) )
 	    return STAT_CONNECTION_LOST;
 	stat = getStat();