summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Marichez <falco@gentoo.org>2008-04-08 22:02:34 +0000
committerRaphaël Marichez <falco@gentoo.org>2008-04-08 22:02:34 +0000
commit5cc3e4b2726b6fc75cbfd8033083595198bd673d (patch)
tree579db7493b6a1c8136895097cb1e02b1153e0a88 /mail-mta/postfix
parentremove old (diff)
downloadgentoo-2-5cc3e4b2726b6fc75cbfd8033083595198bd673d.tar.gz
gentoo-2-5cc3e4b2726b6fc75cbfd8033083595198bd673d.tar.bz2
gentoo-2-5cc3e4b2726b6fc75cbfd8033083595198bd673d.zip
Fix bashism in init.d/postfix reported by Peter Alfredsen, bug #216949
(Portage version: 2.1.4.4)
Diffstat (limited to 'mail-mta/postfix')
-rw-r--r--mail-mta/postfix/ChangeLog5
-rw-r--r--mail-mta/postfix/files/postfix.rc6.2.54
2 files changed, 6 insertions, 3 deletions
diff --git a/mail-mta/postfix/ChangeLog b/mail-mta/postfix/ChangeLog
index a97b110dc4f3..c86b8086a305 100644
--- a/mail-mta/postfix/ChangeLog
+++ b/mail-mta/postfix/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for mail-mta/postfix
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.157 2008/03/21 15:03:51 falco Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.158 2008/04/08 22:02:33 falco Exp $
+
+ 08 Apr 2008; Raphael Marichez <falco@gentoo.org> files/postfix.rc6.2.5:
+ Fix bashism in init.d/postfix reported by Peter Alfredsen, bug #216949
*postfix-2.4.7 (21 Mar 2008)
diff --git a/mail-mta/postfix/files/postfix.rc6.2.5 b/mail-mta/postfix/files/postfix.rc6.2.5
index 8814e225167b..48cbcf08bbca 100644
--- a/mail-mta/postfix/files/postfix.rc6.2.5
+++ b/mail-mta/postfix/files/postfix.rc6.2.5
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/postfix.rc6.2.5,v 1.1 2008/03/17 18:43:22 falco Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/postfix.rc6.2.5,v 1.2 2008/04/08 22:02:34 falco Exp $
# If you plan to simultaneously use several Postfix instances, don't forget
# to specify your alternate_config_directories variable in your main main.cf file.
@@ -12,7 +12,7 @@
CONF_DIR="/etc/postfix"
CONF_OPT="${SVCNAME##*.}"
-if [[ -n ${CONF_OPT} && ${SVCNAME} != "postfix" ]]; then
+if [ -n ${CONF_OPT} -a ${SVCNAME} != "postfix" ]; then
CONF_DIR="${CONF_DIR}.${CONF_OPT}"
fi