summaryrefslogtreecommitdiff
path: root/mh/tests
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-10-24 00:19:09 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-10-24 00:19:09 +0300
commit39b00209c02e1ff1b96b2fc12cbc5b1684e25374 (patch)
treeda5aa709fe5cb36ae865d09621197507a488ea46 /mh/tests
parent09372ddfbaeb45facface67dea795f8e9059d899 (diff)
downloadmailutils-39b00209c02e1ff1b96b2fc12cbc5b1684e25374.tar.gz
mailutils-39b00209c02e1ff1b96b2fc12cbc5b1684e25374.tar.bz2
Minor change.
* mh/tests/atlocal.in (mimeflt): ignore stderr, instead of reading input from /dev/null, because this function can theoretically be used as a filter.
Diffstat (limited to 'mh/tests')
-rw-r--r--mh/tests/atlocal.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/mh/tests/atlocal.in b/mh/tests/atlocal.in
index 18e9d842f..e21d4774f 100644
--- a/mh/tests/atlocal.in
+++ b/mh/tests/atlocal.in
@@ -11,6 +11,11 @@ remove_curdir() {
# If FILE is not given, filter stdin.
# "Variable information" means part boundary and Content-ID header values.
# These elements are likely to change between invocations of mhn -build.
+#
+# Stderr is redirected to /dev/null because "one true awk" (used, in
+# particular, on FreeBSD) complains when closing stdin fails, even if
+# it did not use it at all (it fails because stdin is closed earlier by
+# MH_SETUP).
mimeflt() {
awk '
/^Content-Type:/ {
@@ -35,5 +40,5 @@ awk '
} else
print
}
-' $* </dev/null
+' $* 2>/dev/null
}

Return to:

Send suggestions and report system problems to the System administrator.