]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r310718:
authoramdmi3 <amdmi3@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 Jan 2017 10:28:24 +0000 (10:28 +0000)
committeramdmi3 <amdmi3@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 Jan 2017 10:28:24 +0000 (10:28 +0000)
commitc62e0676a3063b8d05c5295372db2d83e50ed3b4
tree1be3b9f6970ed7feb42abe9883e3410e1e312066
parent0027a6cb11f46b3618044593dae25deb730d8fa7
MFC r310718:

bzip2 does not exit after showing license as requested with --version
or --license as most apps would do, instead it waits for data to
compress on stdin. Because of that, if `bzip2 --version' is called,
bogus `bzip2: I won't write compressed data to a terminal' error
message will be displayed, and checking for bzip2 version in scripts
as in

    bzip2 --version 2>&1 | grep -o "Version [^,]*"

will hand as bzip2 would wait for data to compress on stdin. Fix
this by exiting right after showing version/license text.

I've tried to push this upstream for more than a year, but author
is unresponsive, so upstream may be considered dead.

Ubuntu applies similar fix, for the note.

PR: 199443
Approved by: dim, bapt
Differential Revision: D8924

git-svn-id: svn://svn.freebsd.org/base/stable/10@312061 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/bzip2/bzip2.c