diff options
author | wiz <wiz@pkgsrc.org> | 2016-01-25 15:57:24 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2016-01-25 15:57:24 +0000 |
commit | fb70cf0822a9dc86d352d40d8615ea5c81a45524 (patch) | |
tree | e7e20225cdd00d0307cf35f2c914591d17ef7557 /textproc/mdoclint | |
parent | 2d4c9968ecd8a77057268fc2e4e955ea52199fd3 (diff) | |
download | pkgsrc-fb70cf0822a9dc86d352d40d8615ea5c81a45524.tar.gz |
OpenBSD v1.48 from Ingo Schwarze:
RCS file: /cvs/src/regress/usr.bin/mdoclint/mdoclint,v
revision 1.48
date: 2016/01/24 20:10:48; author: schwarze; state: Exp; lines: +4 -1; commitid: IHgJFdt538B2OF26;
In the OpenBSD-specific part of verify_xref(), discard the standard error
output from man -f: Messages "man: nothing appropriate" are not helpful.
If no matching manual exists anywhere, a more specific message follows
right afterwards. If a matching manual exists in the current directory,
such messages are just wrong.
Issue reported by jmc@.
Diffstat (limited to 'textproc/mdoclint')
-rwxr-xr-x | textproc/mdoclint/files/mdoclint | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/textproc/mdoclint/files/mdoclint b/textproc/mdoclint/files/mdoclint index bd05773510c..1b461db94af 100755 --- a/textproc/mdoclint/files/mdoclint +++ b/textproc/mdoclint/files/mdoclint @@ -1,7 +1,7 @@ #!@PERL5@ # -# $OpenBSD: mdoclint,v 1.42 2014/03/18 22:36:30 miod Exp $ -# $NetBSD: mdoclint,v 1.55 2016/01/03 21:56:01 wiz Exp $ +# $OpenBSD: mdoclint,v 1.48 2016/01/24 20:10:48 schwarze Exp $ +# $NetBSD: mdoclint,v 1.56 2016/01/25 15:57:24 wiz Exp $ # # Copyright (c) 2001-2013 Thomas Klausner # All rights reserved. @@ -275,10 +275,13 @@ sub verify_xref # try to find corresponding man page if (OPENBSD) { open my $saveout, '>&', STDOUT; + open my $saveerr, '>&', STDERR; open STDOUT, '>', '/dev/null'; + open STDERR, '>', '/dev/null'; my $irc = system 'man', '-M', '/usr/share/man:/usr/X11R6/man', '-s', $section, '-f', $page; open STDOUT, '>&', $saveout; + open STDERR, '>&', $saveerr; return 1 unless $irc; } else { for my $dir ('/usr/share/man', '/usr/X11R7/man') { |