X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/a3cf69216fcbe8957a6407984c2c178561d6efeb..refs/heads/case:/server/mr_shutdown.c diff --git a/server/mr_shutdown.c b/server/mr_shutdown.c index 4a0e5bdc..a3e99c75 100644 --- a/server/mr_shutdown.c +++ b/server/mr_shutdown.c @@ -4,10 +4,8 @@ * $Header$ * * Copyright (C) 1987 by the Massachusetts Institute of Technology - * - * $Log$ - * Revision 1.1 1987-06-02 20:07:18 wesommer - * Initial revision + * For copying and distribution information, please see the file + * . * */ @@ -15,10 +13,10 @@ static char *rcsid_sms_shutdown_c = "$Header$"; #endif lint +#include #include #include -#include "sms_private.h" -#include "sms_server.h" +#include "mr_server.h" extern char *takedown; extern char *whoami; @@ -33,32 +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) { - (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.mr_status = EACCES; }