From 4c427915a0552083bc2fce8077e2f0be3f806482 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Wed, 28 Oct 2020 16:18:08 +0000 Subject: [PATCH] ctrl: Fix acltype names. --- apps/mosquitto_ctrl/dynsec_role.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/mosquitto_ctrl/dynsec_role.c b/apps/mosquitto_ctrl/dynsec_role.c index ea930854..1da4d832 100644 --- a/apps/mosquitto_ctrl/dynsec_role.c +++ b/apps/mosquitto_ctrl/dynsec_role.c @@ -174,8 +174,10 @@ int dynsec_role__remove_acl(int argc, char *argv[], cJSON *j_command) if(strcasecmp(acltype, "publishClientSend") && strcasecmp(acltype, "publishClientReceive") - && strcasecmp(acltype, "subscribe") - && strcasecmp(acltype, "unsubscribe")){ + && strcasecmp(acltype, "subscribeLiteral") + && strcasecmp(acltype, "subscribePattern") + && strcasecmp(acltype, "unsubscribeLiteral") + && strcasecmp(acltype, "unsubscribePattern")){ return MOSQ_ERR_INVAL; }