diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2011-05-01 12:24:23 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2011-05-01 12:24:23 +0300 |
commit | 7a480e485938884ef3021b48c3b0b9f9699dc9b6 (patch) | |
tree | 21d5755f218c14d35905a516a7ff07dd46872254 /src/xz/coder.c | |
parent | xz: Print the maximum number of worker threads in xz -vv. (diff) | |
download | xz-7a480e485938884ef3021b48c3b0b9f9699dc9b6.tar.xz |
xz: Fix input file position when --single-stream is used.
Now the following works as you would expect:
echo foo | xz > foo.xz
echo bar | xz >> foo.xz
( xz -dc --single-stream ; xz -dc --single-stream ) < foo.xz
Note that it doesn't work if the input is not seekable
or if there is Stream Padding between the concatenated
.xz Streams.
Diffstat (limited to 'src/xz/coder.c')
-rw-r--r-- | src/xz/coder.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xz/coder.c b/src/xz/coder.c index 316f5609..b470e586 100644 --- a/src/xz/coder.c +++ b/src/xz/coder.c @@ -594,6 +594,7 @@ coder_normal(file_pair *pair) if (ret == LZMA_STREAM_END) { if (opt_single_stream) { + io_fix_src_pos(pair, strm.avail_in); success = true; break; } |