Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d Handle variable expansion and comma/space separator...
details: https://anonhg.NetBSD.org/src/rev/899d232b6ac1
branches: trunk
changeset: 348613:899d232b6ac1
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Oct 30 15:47:06 2016 +0000
description:
Handle variable expansion and comma/space separators in postconf.
>From Timo Buhrmester:
https://mail-index.netbsd.org/tech-userlevel/2016/08/20/msg010301.html
diffstat:
etc/rc.d/postfix | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (25 lines):
diff -r c599ba64fcbf -r 899d232b6ac1 etc/rc.d/postfix
--- a/etc/rc.d/postfix Sun Oct 30 15:01:46 2016 +0000
+++ b/etc/rc.d/postfix Sun Oct 30 15:47:06 2016 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index