hadoop-zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject svn commit: r674665 - /hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeper.java
Date Mon, 07 Jul 2008 23:02:21 GMT
Author: mahadev
Date: Mon Jul  7 16:02:21 2008
New Revision: 674665

URL: http://svn.apache.org/viewvc?rev=674665&view=rev
Log:
ZOOKEEPER-68. Fix command line parsing for zookeeper barebone java client for acls. (Jakob
Homan via mahadev)

Modified:
    hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeper.java

Modified: hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeper.java
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeper.java?rev=674665&r1=674664&r2=674665&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeper.java (original)
+++ hadoop/zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeper.java Mon Jul  7 16:02:21
2008
@@ -1103,7 +1103,7 @@
         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");



Mime
View raw message