Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
e4f3a2ee
Commit
e4f3a2ee
authored
Feb 21, 2019
by
antirez
Browse files
ACL: add LOAD subcommand to ACL HELP.
parent
35ffbead
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/acl.c
View file @
e4f3a2ee
...
@@ -1300,6 +1300,7 @@ void ACLLoadUsersAtStartup(void) {
...
@@ -1300,6 +1300,7 @@ void ACLLoadUsersAtStartup(void) {
/* ACL -- show and modify the configuration of ACL users.
/* ACL -- show and modify the configuration of ACL users.
* ACL HELP
* ACL HELP
* ACL LOAD
* ACL LIST
* ACL LIST
* ACL USERS
* ACL USERS
* ACL CAT [<category>]
* ACL CAT [<category>]
...
@@ -1465,6 +1466,7 @@ void aclCommand(client *c) {
...
@@ -1465,6 +1466,7 @@ void aclCommand(client *c) {
setDeferredArrayLen(c,dl,arraylen);
setDeferredArrayLen(c,dl,arraylen);
} else if (!strcasecmp(sub,"help")) {
} else if (!strcasecmp(sub,"help")) {
const char *help[] = {
const char *help[] = {
"LOAD -- Reload users from the ACL file.",
"LIST -- Show user details in config file format.",
"LIST -- Show user details in config file format.",
"USERS -- List all the registered usernames.",
"USERS -- List all the registered usernames.",
"SETUSER <username> [attribs ...] -- Create or modify a user.",
"SETUSER <username> [attribs ...] -- Create or modify a user.",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment