ACL: initial appending of users in user loading list.

This commit is contained in:
antirez
2019-02-04 12:55:26 +01:00
parent 8f16e1ea91
commit 21e84cdae2
3 changed files with 17 additions and 3 deletions

View File

@ -791,6 +791,11 @@ void loadServerConfigFromString(char *config) {
"Allowed values: 'upstart', 'systemd', 'auto', or 'no'";
goto loaderr;
}
} else if (!strcasecmp(argv[0],"user") && argc >= 2) {
if (ACLAppendUserForLoading(argv,argc) == C_ERR) {
err = "Syntax error in user declaration";
goto loaderr;
}
} else if (!strcasecmp(argv[0],"loadmodule") && argc >= 2) {
queueLoadModule(argv[1],&argv[2],argc-2);
} else if (!strcasecmp(argv[0],"sentinel")) {