]> andersk Git - moira.git/commitdiff
Don't try to use the after argv if we don't have one.
authorzacheiss <zacheiss>
Wed, 18 Feb 2004 16:17:43 +0000 (16:17 +0000)
committerzacheiss <zacheiss>
Wed, 18 Feb 2004 16:17:43 +0000 (16:17 +0000)
incremental/winad/winad.c

index 8f50c735ba1e890f5b6904ce68aaab02464da434..07e47f537a16fe6d515ccd4c7a36dc0ba1b2cb9f 100755 (executable)
@@ -513,6 +513,11 @@ int main(int argc, char **argv)
   before = &argv[4];
   after = &argv[4 + beforec];
 
+  if (afterc == 0)
+    after = NULL;
+  if (beforec == 0)
+    before = NULL;
+
   for (i = 1; i < argc; i++)
     {
       strcat(tbl_buf, argv[i]);
@@ -1037,8 +1042,8 @@ void do_list(LDAP *ldap_handle, char *dn_path, char *ldap_hostname,
                 }
               if ((rc != AD_NO_GROUPS_FOUND) && (rc != 0))
                 {
-                  com_err(whoami, 0, "Unable to change list name from %s to %s",
-                          before[L_NAME], after[L_NAME]);
+                  com_err(whoami, 0, "Unable to process list %s",
+                          before[L_NAME]);
                   return;
                 }
               if (rc == AD_NO_GROUPS_FOUND)
This page took 0.048354 seconds and 5 git commands to generate.