]> andersk Git - moira.git/blobdiff - server/mr_shutdown.c
fix quoting of single-quotes in signatures
[moira.git] / server / mr_shutdown.c
index a285ba7538cfff7c9f7398d9836baede9bd6832f..a3e99c75576eb3831ebac80b52fda99accb55b0d 100644 (file)
@@ -4,26 +4,19 @@
  *     $Header$
  *
  *     Copyright (C) 1987 by the Massachusetts Institute of Technology
+ *     For copying and distribution information, please see the file
+ *     <mit-copyright.h>.
  *
- *     $Log$
- *     Revision 1.3  1987-08-04 02:41:29  wesommer
- *     Clean up messages.
- *
- * Revision 1.2  87/06/21  16:42:12  wesommer
- * Performance work, rearrangement of include files.
- * 
- * Revision 1.1  87/06/02  20:07:18  wesommer
- * Initial revision
- * 
  */
 
 #ifndef lint
 static char *rcsid_sms_shutdown_c = "$Header$";
 #endif lint
 
+#include <mit-copyright.h>
 #include <strings.h>
 #include <sys/errno.h>
-#include "sms_server.h"
+#include "mr_server.h"
 
 extern char *takedown;
 extern char *whoami;
@@ -38,28 +31,11 @@ do_shutdown(cl)
        client *cl;
 {
        static char buf[BUFSIZ];
-
-       if (cl->args->sms_argc != 1) {
-               cl->reply.sms_status = EINVAL;
-               return;
-       }
-               
-       if (!cl->clname) {
-               com_err(whoami, 0, "Unauthenticated shutdown request rejected",
-                       cl->clname);
-               cl->reply.sms_status = EACCES;
-               return;
-       }
-       if (!strcmp(cl->clname, "wesommer@ATHENA.MIT.EDU") ||
-           !strcmp(cl->clname, "mike@ATHENA.MIT.EDU")) {
-               com_err(whoami, 0, "Shut down by %s", cl->clname);
-               (void) strcpy(buf, "Reason for shutdown: ");
-               (void) strcat(buf, cl->args->sms_argv[0]);
-               takedown = buf;
-       } else {
-               com_err(whoami, 0, "Shutdown request by %s rejected",
-                       cl->clname);
-               cl->reply.sms_status = EACCES;
-       }
+       /*
+        * This feature is no longer supported.  Sorry.
+        */
+       com_err(whoami, 0, "Shutdown request by %s rejected",
+               cl->clname);
+       cl->reply.mr_status = EACCES;
 }
                
This page took 0.032513 seconds and 4 git commands to generate.