]> andersk Git - moira.git/commitdiff
set "success" to 0 in a few more places (like, if "blanche -i" fails)
authordanw <danw>
Tue, 14 Dec 1999 20:13:59 +0000 (20:13 +0000)
committerdanw <danw>
Tue, 14 Dec 1999 20:13:59 +0000 (20:13 +0000)
to make blanche's exit status more useful. Fixes [1289] in moira.

clients/blanche/blanche.c

index 4ab050ab78ee0b45045a198f4a7176ae060c7925..2ea681787ab059eca2996a6f259e3a4c2e4a876c 100644 (file)
@@ -403,7 +403,10 @@ int main(int argc, char **argv)
        status = mr_query("update_list", 11, argv, NULL, NULL);
 
       if (status)
-       com_err(whoami, status, "while updating list.");
+       {
+         com_err(whoami, status, "while updating list.");
+         success = 0;
+       }
       else if (newname)
        listname = newname;
     }
@@ -413,13 +416,19 @@ int main(int argc, char **argv)
     {
       status = mr_query("get_list_info", 1, &listname, show_list_info, NULL);
       if (status)
-       com_err(whoami, status, "while getting list information");
+       {
+         com_err(whoami, status, "while getting list information");
+         success = 0;
+       }
       if (verbose && !memberflg)
        {
          status = mr_query("count_members_of_list", 1, &listname,
                            show_list_count, NULL);
          if (status)
-           com_err(whoami, status, "while getting list count");
+           {
+             com_err(whoami, status, "while getting list count");
+             success = 0;
+           }
        }
     }
 
This page took 0.084174 seconds and 5 git commands to generate.