Commit 39b00209 39b00209c02e1ff1b96b2fc12cbc5b1684e25374 by Sergey Poznyakoff

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.
1 parent 09372ddf
...@@ -11,6 +11,11 @@ remove_curdir() { ...@@ -11,6 +11,11 @@ remove_curdir() {
11 # If FILE is not given, filter stdin. 11 # If FILE is not given, filter stdin.
12 # "Variable information" means part boundary and Content-ID header values. 12 # "Variable information" means part boundary and Content-ID header values.
13 # These elements are likely to change between invocations of mhn -build. 13 # These elements are likely to change between invocations of mhn -build.
14 #
15 # Stderr is redirected to /dev/null because "one true awk" (used, in
16 # particular, on FreeBSD) complains when closing stdin fails, even if
17 # it did not use it at all (it fails because stdin is closed earlier by
18 # MH_SETUP).
14 mimeflt() { 19 mimeflt() {
15 awk ' 20 awk '
16 /^Content-Type:/ { 21 /^Content-Type:/ {
...@@ -35,5 +40,5 @@ awk ' ...@@ -35,5 +40,5 @@ awk '
35 } else 40 } else
36 print 41 print
37 } 42 }
38 ' $* </dev/null 43 ' $* 2>/dev/null
39 } 44 }
......