Changeset: 07e736834ced for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=07e736834ced Modified Files: monetdb5/modules/mal/clients.c Branch: Nov2019 Log Message:
only allow MAL_ADMIN to shutdown the server diffs (12 lines): diff --git a/monetdb5/modules/mal/clients.c b/monetdb5/modules/mal/clients.c --- a/monetdb5/modules/mal/clients.c +++ b/monetdb5/modules/mal/clients.c @@ -593,7 +593,7 @@ CLTshutdown(Client cntxt, MalBlkPtr mb, break; } - if ( cntxt->user != mal_clients[0].user) + if (mal_clients[0].user != MAL_ADMIN) throw(MAL,"mal.shutdown", "Administrator rights required"); MCstopClients(cntxt); do{ _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list