xz: Fix error detection of fcntl(fd, F_SETFL, flags) calls.
commit78c2f8db902195468b8249c432252a6b281db836
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 28 Jun 2013 15:09:47 +0000 (28 18:09 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 28 Jun 2013 19:04:36 +0000 (28 22:04 +0300)
tree6c28afb0af680d1e224b15917fba6bbc55b276c2
parent91750dff8f2c654ff636f12a2acdffe5492374b3
xz: Fix error detection of fcntl(fd, F_SETFL, flags) calls.

POSIX says that fcntl(fd, F_SETFL, flags) returns -1 on
error and "other than -1" on success. This is how it is
documented e.g. on OpenBSD too. On Linux, success with
F_SETFL is always 0 (at least accorinding to fcntl(2)
from man-pages 3.51).
src/xz/file_io.c