xz: Don't fail if stdin doesn't support O_NONBLOCK.
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 7 Jan 2015 17:08:06 +0000 (19:08 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 7 Jan 2015 17:08:06 +0000 (19:08 +0200)
commitf0f1f6c7235ffa901cf76fe18e33749e200b3eea
tree7164d82508dbebca219ea2026e034e9ee0d5b82e
parentd2d484647d9d9d679f03c75abb0404f67069271c
xz: Don't fail if stdin doesn't support O_NONBLOCK.

It's a problem at least on OpenBSD which doesn't support
O_NONBLOCK on e.g. /dev/null. I'm not surprised if it's
a problem on other OSes too since this behavior is allowed
in POSIX-1.2008.

The code relying on this behavior was committed in June 2013
and included in 5.1.3alpha released on 2013-10-26. Clearly
the development releases only get limited testing.
src/xz/file_io.c