From: Alan Cox Date: Tue, 19 May 2015 22:18:34 +0000 (+0100) Subject: syscall_other: correct uadmin permission check X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=afa4412fff8a6f4f194547f10d2282342c309fe6;p=FUZIX.git syscall_other: correct uadmin permission check --- diff --git a/Kernel/syscall_other.c b/Kernel/syscall_other.c index be2e54c6..9304de23 100644 --- a/Kernel/syscall_other.c +++ b/Kernel/syscall_other.c @@ -429,7 +429,7 @@ char *ptr; arg_t _uadmin(void) { - if (!esuper()) + if (esuper()) return -1; /* Wants moving into machine specific files */ if (cmd == A_SHUTDOWN || cmd == A_REBOOT || cmd == A_DUMP) {