Module Name: src
Committed By: riastradh
Date: Sun Oct 30 15:47:06 UTC 2016
Modified Files:
src/etc/rc.d: postfix
Log Message:
Handle variable expansion and comma/space separators in postconf.
>From Timo Buhrmester:
https://mail-index.netbsd.org/tech-userlevel/2016/08/20/msg010301.html
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/etc/rc.d/postfix
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/rc.d/postfix
diff -u src/etc/rc.d/postfix:1.17 src/etc/rc.d/postfix:1.18
--- src/etc/rc.d/postfix:1.17 Thu Jul 23 17:12:16 2015
+++ src/etc/rc.d/postfix Sun Oct 30 15:47:06 2016
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: postfix,v 1.17 2015/07/23 17:12:16 riz Exp $
+# $NetBSD: postfix,v 1.18 2016/10/30 15:47:06 riastradh Exp $
#
# PROVIDE: mail
@@ -44,9 +44,10 @@ postfix_precmd()
fi
done
- for f in $($postconf -h alias_database); do
- OIFS="${IFS}"
- IFS="${IFS}:"
+ OIFS="${IFS}"
+ IFS="${IFS},"
+ for f in $($postconf -hx alias_database); do
+ IFS="${OIFS}:"
set -- $f
IFS="${OIFS}"
case "$1" in