]> andersk Git - moira.git/commitdiff
blanche should exit if it is sync-ing a list to a file and
authorjweiss <jweiss>
Fri, 28 Oct 1994 17:34:02 +0000 (17:34 +0000)
committerjweiss <jweiss>
Fri, 28 Oct 1994 17:34:02 +0000 (17:34 +0000)
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

index 02107188a5039a5f6e7dad4f7f1fa0e5e535a3d6..ccdfdce38eb3ac4f9e281983b7e88f8dc8c51284 100644 (file)
@@ -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 &&
This page took 0.046765 seconds and 5 git commands to generate.