Patch: Allowing server ops to use the KILL command
Jeremy Mayeres
info at jsyte.com
Mon Jul 24 00:31:58 CEST 2006
This patch is to allow server ops to use the kill command. I use this
for single-server use (no routers). I commented out the check for router
and changed from checking for ROUTER_OPERATOR to SERVER_OPERATOR
Enjoy!
-------------- next part --------------
--- apps/silcd/command_original.c 2006-07-23 18:21:10.000000000 -0400
+++ apps/silcd/command.c 2006-07-23 18:03:38.000000000 -0400
@@ -1434,14 +1434,18 @@ SILC_SERVER_CMD_FUNC(kill)
/* Router operator killing */
/* KILL command works only on router */
+ /* Patch: !!!FOR SINGLE SERVERS ONLY!!! Allows serverops to use this command
+ *
if (server->server_type != SILC_ROUTER) {
silc_server_command_send_status_reply(cmd, SILC_COMMAND_KILL,
SILC_STATUS_ERR_NO_ROUTER_PRIV, 0);
goto out;
}
-
+ */
/* Check whether client has the permissions. */
- if (!(client->mode & SILC_UMODE_ROUTER_OPERATOR)) {
+ /* Patch: !!!FOR SINGLE SERVER ONLY!!! See above
+ */
+ if (!(client->mode & SILC_UMODE_SERVER_OPERATOR)) {
silc_server_command_send_status_reply(cmd, SILC_COMMAND_KILL,
SILC_STATUS_ERR_NO_ROUTER_PRIV, 0);
goto out;
More information about the silc-devel
mailing list