* $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];
*
* 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
str++;
if (!*str) {
failure:
- reject_call(SMSU_BAD_ARGS);
+ reject_call(MR_ARGS);
return;
}
file_size = atoi(str);
goto failure;
pathname = str;
if (!have_authorization) {
- reject_call(SMSU_NO_AUTH);
+ reject_call(MR_PERM);
return;
}
if (done) /* re-initialize data */
have_file = 1;
strcpy(buf, "transferred file ");
strcat(buf, pathname);
- sms_log_info(buf);
+ mr_log_info(buf);
}
return;
}