Le Thursday 03 September 2009 13:13:13 Enrique Zanardi, vous avez écrit :
> Package: ldap2zone
> Version: 0.1-2
> Severity: normal
> Tags: patch
>
>
> When running as a normal user, ldap2bind doesn't detect that rndc and
> ldap2zone are not on the user's PATH.
>
> That's because ot an improper use of the -z flag on the tests.
> -z STRING returns true if the length of STRING is zero, but on
> ldap2bind the tests are like:
>
> if [ -z ${#rndc} ]; then
>
> ${#rndc} is the length of $rndc. If $rndc is the empty string, ${#rndc}
> is 0, and -z 0 is false.
>
> A better way to test that would be:
>
> if [ -z "${rndc}" ]; then

Hello,

Patch tested and applied in ldap2zone trunk

Thanks for the report
-- 
Benoit Mortier
CEO 
OpenSides "logiciels libres pour entreprises" : http://www.opensides.be/
Contributor to Gosa Project : http://gosa-project.org/



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to