]> andersk Git - moira.git/blobdiff - update/update_test.c
Command line printer manipulation client, and build goo.
[moira.git] / update / update_test.c
index 9080fc78a6420f9f42fca633861300bfbdd66190..d3f957328dfd8c7d0291170104de0c4bb9e3e845 100644 (file)
@@ -39,7 +39,9 @@ int main(int argc, char **argv)
       exit(1);
     }
 
-  code = send_auth(conn, host);
+  code = mr_send_krb5_auth(conn, host);
+  if (code)
+    code = mr_send_auth(conn, host);
   if (code)
     com_err(whoami, code, "attempting authorization");
 
@@ -55,7 +57,7 @@ int main(int argc, char **argv)
          file = argv[++i];
          rfile = argv[++i];
          fprintf(stderr, "Sending file %s to %s as %s\n", file, host, rfile);
-         send_file(conn, file, rfile, 0);
+         mr_send_file(conn, file, rfile, 0);
          break;
        case 'S':
          if (i + 2 >= argc)
@@ -64,7 +66,7 @@ int main(int argc, char **argv)
          rfile = argv[++i];
          fprintf(stderr, "Sending (encrypted) file %s to %s as %s\n",
                  file, host, rfile);
-         send_file(conn, file, rfile, 1);
+         mr_send_file(conn, file, rfile, 1);
          break;
        case 'i':
          if (i + 1 >= argc)
@@ -79,7 +81,7 @@ int main(int argc, char **argv)
          mktemp(ibuf);
          fprintf(stderr, "Sending instructions %s to %s as %s\n",
                  file, host, ibuf);
-         send_file(conn, file, ibuf, 0);
+         mr_send_file(conn, file, ibuf, 0);
          break;
        case 'I':
          if (i + 2 >= argc)
@@ -89,7 +91,7 @@ int main(int argc, char **argv)
          strcpy(ibuf, rfile);
          fprintf(stderr, "Sending instructions %s to %s as %s\n",
                  file, host, ibuf);
-         send_file(conn, file, ibuf, 0);
+         mr_send_file(conn, file, ibuf, 0);
          break;
        case 'x':
          if (!ibuf)
@@ -98,7 +100,7 @@ int main(int argc, char **argv)
              usage();
            }
          fprintf(stderr, "Executing instructions %s on %s\n", ibuf, host);
-         code = execute(conn, ibuf);
+         code = mr_execute(conn, ibuf);
          if (code)
            com_err(whoami, code, "executing");
          break;
@@ -107,7 +109,7 @@ int main(int argc, char **argv)
            usage();
          file = argv[++i];
          fprintf(stderr, "Executing instructions %s on %s\n", file, host);
-         code = execute(conn, file);
+         code = mr_execute(conn, file);
          if (code)
            com_err(whoami, code, "executing");
          break;
@@ -117,7 +119,7 @@ int main(int argc, char **argv)
          usage();
        }
     }
-  send_quit(conn);
+  mr_send_quit(conn);
   close(conn);
   exit(code);
 }
This page took 0.090846 seconds and 4 git commands to generate.