[1746] in Moira
don't always recurse
daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Thu Mar 1 04:05:46 2001
Message-Id: <200103010905.EAA03903@riff-raff-w20.mit.edu>
To: moiradev@MIT.EDU
Date: Thu, 01 Mar 2001 04:05:44 -0500
From: Garry Zacheiss <zacheiss@MIT.EDU>
This patch makes the curses client ask if you want a recursive
search or not when doing a glom, rather than assuming it always should
be recursive.
Garry
Index: lists.c
===================================================================
RCS file: /afs/athena.mit.edu/astaff/project/moiradev/repository/moira/clients/moira/lists.c,v
retrieving revision 1.44
diff -u -r1.44 lists.c
--- lists.c 2000/12/20 09:40:10 1.44
+++ lists.c 2001/03/01 09:02:41
@@ -905,10 +905,18 @@
if (GetValueFromUser(buf, &name) == SUB_ERROR)
return DM_NORMAL;
- /* What we really want is a recursive search */
- sprintf(temp_buf, "R%s", type);
- free(type);
- type = strdup(temp_buf);
+ switch (YesNoQuestion("Do you want a recursive search (y/n)", TRUE))
+ {
+ case TRUE:
+ sprintf(temp_buf, "R%s", type); /* "USER" to "RUSER" etc. */
+ free(type);
+ type = strdup(temp_buf);
+ break;
+ case FALSE:
+ break;
+ default:
+ return DM_NORMAL;
+ }
if ((maillist = YesNoQuestion("Show Lists that are Maillists (y/n) ?",
TRUE)) == -1)