aboutsummaryrefslogtreecommitdiff
path: root/src/common/tuklib_progname.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2013-06-28 17:36:47 +0300
committerLasse Collin <lasse.collin@tukaani.org>2013-06-28 22:04:32 +0300
commit91750dff8f2c654ff636f12a2acdffe5492374b3 (patch)
tree533bebc9397d9c6387244902f7b7361bb2b1262d /src/common/tuklib_progname.h
parentxz: Check the value of lzma_stream_flags.version in --list. (diff)
downloadxz-91750dff8f2c654ff636f12a2acdffe5492374b3.tar.xz
xz: Fix use of wrong variable in a fcntl() call.
Due to a wrong variable name, when writing a sparse file to standard output, *all* file status flags were cleared (to the extent the operating system allowed it) instead of only clearing the O_APPEND flag. In practice this worked fine in the common situations on GNU/Linux, but I didn't check how it behaved elsewhere. The original flags were still restored correctly. I still changed the code to use a separate boolean variable to indicate when the flags should be restored instead of relying on a special value in stdout_flags.
Diffstat (limited to 'src/common/tuklib_progname.h')
0 files changed, 0 insertions, 0 deletions