You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Chris Seawood (JIRA)" <ji...@apache.org> on 2013/08/05 21:44:57 UTC

[jira] [Updated] (ZOOKEEPER-1737) zk scripts no longer work when symlinked

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-1737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Seawood updated ZOOKEEPER-1737:
-------------------------------------

    Attachment: zookeeper-3.4.5-ZK1731-SC01.patch

Use readlink (not readlink -f) to resolve each level of symlink individually.
                
> zk scripts no longer work when symlinked
> ----------------------------------------
>
>                 Key: ZOOKEEPER-1737
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1737
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: scripts
>    Affects Versions: 3.4.5
>         Environment: RHEL6.4
>            Reporter: Chris Seawood
>         Attachments: zookeeper-3.4.5-ZK1731-SC01.patch
>
>
> At some point since 3.3, the shell scripts were updated to move away from using readlink to using BASH_SOURCE.  The problem is that BASH_SOURCE doesn't resolve symlinks so when /usr/bin/zookeeper-cli is symlinked to /usr/lib/zookeeper/bin/zkCli.sh it fails every single time.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira