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 22:04:36 +0300 |
commit | 78c2f8db902195468b8249c432252a6b281db836 (patch) | |
tree | 6c28afb0af680d1e224b15917fba6bbc55b276c2 /src/liblzma/api/lzma/delta.h | |
parent | xz: Fix use of wrong variable in a fcntl() call. (diff) | |
download | xz-78c2f8db902195468b8249c432252a6b281db836.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 'src/liblzma/api/lzma/delta.h')
0 files changed, 0 insertions, 0 deletions