|
|
@ -67,6 +67,9 @@ acl_allow_command(struct cmd *cmd, struct conf *cfg, struct evhttp_request *rq)
|
|
|
|
if(strncasecmp(a->enabled.commands[i], cmd_name, cmd_len) == 0) {
|
|
|
|
if(strncasecmp(a->enabled.commands[i], cmd_name, cmd_len) == 0) {
|
|
|
|
authorized = 1;
|
|
|
|
authorized = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(strncasecmp(a->enabled.commands[i], "*", 1) == 0) {
|
|
|
|
|
|
|
|
authorized = 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* go through unauthorized commands */
|
|
|
|
/* go through unauthorized commands */
|
|
|
@ -74,6 +77,9 @@ acl_allow_command(struct cmd *cmd, struct conf *cfg, struct evhttp_request *rq)
|
|
|
|
if(strncasecmp(a->disabled.commands[i], cmd_name, cmd_len) == 0) {
|
|
|
|
if(strncasecmp(a->disabled.commands[i], cmd_name, cmd_len) == 0) {
|
|
|
|
authorized = 0;
|
|
|
|
authorized = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(strncasecmp(a->disabled.commands[i], "*", 1) == 0) {
|
|
|
|
|
|
|
|
authorized = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|