xz/DOS: Be more careful with the destination file.
commitcd4fe97852bcaeffe674ee51b4613709292a0972
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 10 Apr 2011 09:47:47 +0000 (10 12:47 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 10 Apr 2011 09:47:47 +0000 (10 12:47 +0300)
treec953e2ecb479ff2b183dce5e7f7ac97a4d184277
parent607f9f98ae5ef6d49f4c21c806d462bf6b3d6796
xz/DOS: Be more careful with the destination file.

Try to avoid overwriting the source file if --force is
used and the generated destination filename refers to
the source file. This can happen with 8.3 filenames where
extra characters are ignored.

If the generated output file refers to a special file
like "con" or "prn", refuse to write to it even if --force
is used.
src/xz/file_io.c