]> andersk Git - moira.git/commitdiff
When doing a glom, allow the user the option of not doing a recursive
authorzacheiss <zacheiss>
Fri, 2 Mar 2001 04:44:57 +0000 (04:44 +0000)
committerzacheiss <zacheiss>
Fri, 2 Mar 2001 04:44:57 +0000 (04:44 +0000)
search.

clients/moira/lists.c

index 9966676cbef1340c4a45a9657554fc92425b6153..e3295f8d329c44fb8eb99c0c843fd46639c2ee1c 100644 (file)
@@ -905,10 +905,18 @@ int ListByMember(int argc, char **argv)
   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)
This page took 0.038659 seconds and 5 git commands to generate.