Browse Source

ZOOKEEPER-68. Fix command line parsing for zookeeper barebone java client for acls. (Jakob Homan via mahadev)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/zookeeper/trunk@674665 13f79535-47bb-0310-9956-ffa450edef68
Mahadev Konar 17 years ago
parent
commit
0da7e6a3a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/java/main/org/apache/zookeeper/ZooKeeper.java

+ 1 - 1
src/java/main/org/apache/zookeeper/ZooKeeper.java

@@ -1103,7 +1103,7 @@ public class ZooKeeper {
         acl = new ArrayList<ACL>();
         for (String a : acls) {
             int firstColon = a.indexOf(':');
-            int lastColon = a.indexOf(':');
+            int lastColon = a.lastIndexOf(':');
             if (firstColon == -1 || lastColon == -1 || firstColon == lastColon) {
                 System.err
                         .println(a + " does not have the form scheme:id:perm");