#include <sys/param.h>
#include <sys/file.h>
#include <strings.h>
-#include <sms.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(SMS_ARGS);
+ reject_call(MR_ARGS);
return;
}
file_size = atoi(str);
goto failure;
pathname = str;
if (!have_authorization) {
- reject_call(SMS_PERM);
+ 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;
}