]> icculus.org git repositories - icculus/xz.git/commit
Don't compress or decompress special files unless writing
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 13 Jan 2010 16:12:40 +0000 (18:12 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 13 Jan 2010 16:12:40 +0000 (18:12 +0200)
commit23ac2c44c3ac76994825adb7f9a8f719f78b5ee4
treef2e78a1c1998d3be4ca9d12644954f86f2599564
parentcee12aa852ec0902983dc1f153346ef750157fb9
Don't compress or decompress special files unless writing
to stdout even if --force is used.

--force will still enable compression of symlinks, but only
in case they point to a regular file.

The new way simply seems more reasonable. It matches gzip's
behavior while the old one matched bzip2's behavior.
src/xz/file_io.c