From 26624cbe89966e4e26c16a1711e4c306cdaacd90 Mon Sep 17 00:00:00 2001 From: jweiss Date: Fri, 28 Oct 1994 17:34:02 +0000 Subject: [PATCH] blanche should exit if it is sync-ing a list to a file and it gets an error trying to get the list membership. The exit status of 1 seems to be for the usage message 2 for all other problems, and 3 for a programmer botch. --- clients/blanche/blanche.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/clients/blanche/blanche.c b/clients/blanche/blanche.c index 02107188..ccdfdce3 100644 --- a/clients/blanche/blanche.c +++ b/clients/blanche/blanche.c @@ -214,8 +214,10 @@ char **argv; if (syncflg) { status = mr_query("get_members_of_list", 1, &listname, get_list_members, (char *)memberlist); - if (status) - com_err(whoami, status, "getting members of list %s", listname); + if (status) { + com_err(whoami, status, "getting members of list %s", listname); + exit (2); + } while (sq_get_data(synclist, &memberstruct)) { struct save_queue *q; int removed = 0; @@ -245,7 +247,7 @@ char **argv; fprintf(stderr, "Illegal character \"'\" in \"STRING:%s\", aborting blanche.\n", memberstruct->name); fprintf(stderr, "No changes were made.\n"); - exit(1); + exit(2); } /* canonicalize string if necessary */ if (memberstruct->type == M_STRING && -- 2.45.1