From: danw Date: Thu, 3 Jul 1997 03:23:38 +0000 (+0000) Subject: Read it and weep. X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/994657b2401bde83fb9100ed612c0dd26b5578b2 Read it and weep. --- diff --git a/update/exec_002.c b/update/exec_002.c index d492d92d..c9239a51 100644 --- a/update/exec_002.c +++ b/update/exec_002.c @@ -27,7 +27,7 @@ static char *rcsid_exec_002_c = "$Header$"; #include "update.h" extern CONNECTION conn; -extern int code, errno, uid, log_priority; +extern int code, errno, uid, log_priority, have_authorization; extern char *whoami; #if defined(vax) || defined(ibm032) @@ -48,6 +48,10 @@ exec_002(str) #endif int n, pid; + if (!have_authorization) { + reject_call(MR_PERM); + return(0); + } if (config_lookup("noexec")) { code = EPERM; code = send_object(conn, (char *)&code, INTEGER_T);