diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2013-06-28 18:09:47 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2013-06-28 18:09:47 +0300 |
commit | a616fdad34b48b2932ef03fb87309dcc8b829527 (patch) | |
tree | 0a4ef335498e5457db4857b39a97458fb2e5bba3 /tests/bcj_test.c | |
parent | xz: Fix use of wrong variable in a fcntl() call. (diff) | |
download | xz-a616fdad34b48b2932ef03fb87309dcc8b829527.tar.xz |
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).
Diffstat (limited to 'tests/bcj_test.c')
0 files changed, 0 insertions, 0 deletions