]> andersk Git - moira.git/blobdiff - update/xfer_002.c
make sure exec program runs with sigchild enabled
[moira.git] / update / xfer_002.c
index 209af2c6c8fd6bec3b215d28c99901e295f39bad..3b00c9243815a213485fa7e325542ed706c072ce 100644 (file)
@@ -2,19 +2,22 @@
  *     $Source$
  *     $Header$
  */
+/*  (c) Copyright 1988 by the Massachusetts Institute of Technology. */
+/*  For copying and distribution information, please see the file */
+/*  <mit-copyright.h>. */
 
 #ifndef lint
 static char *rcsid_xfer_002_c = "$Header$";
 #endif lint
 
+#include <mit-copyright.h>
 #include <stdio.h>
-#include "gdb.h"
+#include <gdb.h>
 #include <ctype.h>
 #include <sys/param.h>
 #include <sys/file.h>
-#include "smsu_int.h"
-#include "kludge.h"
 #include <strings.h>
+#include <moira.h>
 
 extern CONNECTION conn;
 char buf[BUFSIZ];
@@ -38,7 +41,7 @@ extern int have_authorization, have_file, done;
  *
  * function:
  *     perform initial preparations and receive file as
- * a single string, storing it into <pathname>.sms_update.
+ * a single string, storing it into <pathname>.moira_update.
  *
  * still to be done: file locking; perform transfers in pieces instead
  * of all at once; use checksums
@@ -57,7 +60,7 @@ xfer_002(str)
        str++;
     if (!*str) {
     failure:
-       reject_call(SMSU_BAD_ARGS);
+       reject_call(MR_ARGS);
        return;
     }
     file_size = atoi(str);
@@ -74,7 +77,7 @@ xfer_002(str)
        goto failure;
     pathname = str;
     if (!have_authorization) {
-       reject_call(SMSU_NO_AUTH);
+       reject_call(MR_PERM);
        return;
     }
     if (done)                  /* re-initialize data */
@@ -88,7 +91,7 @@ xfer_002(str)
        have_file = 1;
        strcpy(buf, "transferred file ");
        strcat(buf, pathname);
-       sms_log_info(buf);
+       mr_log_info(buf);
     }
     return;
 }
This page took 0.410848 seconds and 4 git commands to generate.