xz: Fix use of wrong variable in a fcntl() call.
commit91750dff8f2c654ff636f12a2acdffe5492374b3
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 28 Jun 2013 14:36:47 +0000 (28 17:36 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 28 Jun 2013 19:04:32 +0000 (28 22:04 +0300)
tree533bebc9397d9c6387244902f7b7361bb2b1262d
parente11888a79a4a77a69afde60445880d44f63d01aa
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.
src/xz/file_io.c