You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Patrick Hunt (JIRA)" <ji...@apache.org> on 2016/03/03 02:37:18 UTC
[jira] [Updated] (ZOOKEEPER-1048) addauth command does not work in
cli_mt/cli_st
[ https://issues.apache.org/jira/browse/ZOOKEEPER-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Hunt updated ZOOKEEPER-1048:
------------------------------------
Assignee: allengao
> addauth command does not work in cli_mt/cli_st
> ----------------------------------------------
>
> Key: ZOOKEEPER-1048
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1048
> Project: ZooKeeper
> Issue Type: Bug
> Components: c client
> Affects Versions: 3.3.1
> Environment: SUSE_64
> Reporter: allengao
> Assignee: allengao
> Labels: patch
> Fix For: 3.3.6, 3.4.4, 3.5.0
>
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> I can not operation a node with ACL by "addauth" when using cli_st. I have fixed this bug:
> original:else if (startsWith(line, "addauth ")) {
> char *ptr;
> line += 8;
> ptr = strchr(line, ' ');
> if (ptr) {
> *ptr = '\0';
> ptr++;
> }
> zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) -1 : 0, NULL, NULL);
> now: zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) : 0, NULL, NULL);
> strlen(ptr) is just ok.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)