Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gunzip: handle io.EOF errors correctly in WriteTo
WriteTo should not return io.EOF because it is assumed to have io.Copy semantics (namely, on success you return no error -- even if there were no bytes copied). Several parts of WriteTo would return io.EOF -- all of which need to be switched to special-case io.EOF. In addition, Read would save io.EOF in z.err in some specific corner cases -- these appear to be oversights and thus are fixed to not store io.EOF in z.err. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
- Loading branch information