]> andersk Git - moira.git/blobdiff - server/mr_shutdown.c
fixed POP counts; added nfsquotas phys_id
[moira.git] / server / mr_shutdown.c
index 4a0e5bdc1e2e7a26181ab73d9368ac42ea703300..053735f4239135cff4508ea76f83c1a000fdb2f4 100644 (file)
@@ -6,9 +6,21 @@
  *     Copyright (C) 1987 by the Massachusetts Institute of Technology
  *
  *     $Log$
- *     Revision 1.1  1987-06-02 20:07:18  wesommer
- *     Initial revision
+ *     Revision 1.4  1987-09-11 15:33:11  wesommer
+ *     Disable shutdowns completely.
  *
+ * Revision 1.4  87/09/09  01:43:11  wesommer
+ * Disable server shutdown request.
+ * 
+ * Revision 1.3  87/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
@@ -17,7 +29,6 @@ static char *rcsid_sms_shutdown_c = "$Header$";
 
 #include <strings.h>
 #include <sys/errno.h>
-#include "sms_private.h"
 #include "sms_server.h"
 
 extern char *takedown;
@@ -33,32 +44,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) {
-               (void) sprintf(buf,
-                              "Unauthenticated shutdown request rejected",
-                              cl->clname);
-               com_err(whoami, 0, buf);
-               cl->reply.sms_status = EACCES;
-               return;
-       }
-       if (!strcmp(cl->clname, "wesommer@ATHENA.MIT.EDU") ||
-           !strcmp(cl->clname, "mike@ATHENA.MIT.EDU")) {
-               (void) sprintf(buf, "Shut down by %s", cl->clname);
-               com_err(whoami, 0, buf);
-               (void) strcpy(buf, "Reason for shutdown: ");
-               (void) strcat(buf, cl->args->sms_argv[0]);
-               takedown = buf;
-       } else {
-               (void) sprintf(buf, "Shutdown request by %s rejected",
-                              cl->clname);
-               com_err(whoami, 0, buf);
-               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.sms_status = EACCES;
 }
                
This page took 0.074169 seconds and 4 git commands to generate.