commit | a616fdad34b48b2932ef03fb87309dcc8b829527 | [log] [tgz] |
---|---|---|
author | Lasse Collin <lasse.collin@tukaani.org> | Fri Jun 28 18:09:47 2013 +0300 |
committer | Lasse Collin <lasse.collin@tukaani.org> | Fri Jun 28 18:09:47 2013 +0300 |
tree | 0a4ef335498e5457db4857b39a97458fb2e5bba3 | |
parent | 4a08a6e4c61c65ab763ab314100a6d7a3bb89298 [diff] |
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).