5 /* (c) Copyright 1988 by the Massachusetts Institute of Technology. */
6 /* For copying and distribution information, please see the file */
7 /* <mit-copyright.h>. */
10 static char *rcsid_inst_001_c = "$Header$";
13 #include <mit-copyright.h>
20 STRING instructions = { 0, 0 };
21 extern CONNECTION conn;
22 extern int have_instructions, have_authorization;
28 * instruction sequence transmission:
30 * >>> (STRING) "inst_001"
32 * >>> (STRING) instructions
43 if (config_lookup("noinstructions")) {
45 code = send_object(conn, (char *)&code, INTEGER_T);
46 com_err(whoami, EPERM, "Not allowed to receive instructions");
58 file_size = atoi(str);
71 if (!have_authorization) {
77 lose("sending ok for file xfer (2)");
78 code = get_file(pathname, file_size, checksum, 0555, 0);
81 have_instructions = 1;
82 strcpy(buf, "transferred file ");
83 strcat(buf, pathname);
87 printf("got instructions: %s\n", STRING_DATA(instructions));