Package: sudo-ldap
Version: 1.8.3p2-1
Severity: important
Tags: patch
Dear Maintainer,
When installing sudo-ldap using apt-get I encountered the following output:
-- 8< --
Setting up sudo-ldap (1.8.3p2-1) ...
/var/lib/dpkg/info/sudo-ldap.postinst: 40: [: missing ]
-- 8< --
Line 40 of sudo-ldap.postinst reads like so:
if [ -e /etc/ldap/ldap.conf && ! -e /etc/sudo-ldap.conf ];then
&& is used between commands, but -a is used between predicates in [ ] pairs
When I changed && to -a, the package installed successfully. A patch that does
this is at the end of this message.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: armel (armv5tel)
Kernel: Linux 3.0.0-1-kirkwood
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages sudo-ldap depends on:
ii libc6 2.13-27
ii libldap-2.4-2 2.4.28-1.1
ii libpam-modules 1.1.3-7
ii libpam0g 1.1.3-7
sudo-ldap recommends no packages.
sudo-ldap suggests no packages.
-- Configuration Files:
/etc/sudoers [Errno 13] Permission denied: u'/etc/sudoers'
/etc/sudoers.d/README [Errno 13] Permission denied: u'/etc/sudoers.d/README'
-- no debconf information
---
debian/sudo-ldap.postinst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/debian/sudo-ldap.postinst b/debian/sudo-ldap.postinst
index 464afc9..0aa57a9 100644
--- a/debian/sudo-ldap.postinst
+++ b/debian/sudo-ldap.postinst
@@ -37,7 +37,7 @@ update-rc.d sudo start 75 2 3 4 5 . >/dev/null
# create symlink to ease transition to new path for ldap config
# if old config file exists and new one doesn't
-if [ -e /etc/ldap/ldap.conf && ! -e /etc/sudo-ldap.conf ];then
+if [ -e /etc/ldap/ldap.conf -a ! -e /etc/sudo-ldap.conf ];then
ln -s ldap/ldap.conf /etc/sudo-ldap.conf
fi
--
1.7.9.1
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]