This commit is contained in:
Hanno Hecker 2016-01-07 05:26:09 +01:00
parent 0d31cf4b25
commit 7bdbe0c48d
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ func (f *UnionFile) Read(s []byte) (int, error) {
if (err == nil || err == io.EOF) && f.base != nil {
// advance the file position also in the base file, the next
// call may be a write at this position (or a seek with SEEK_CUR)
if _, seekErr := f.base.Seek(int64(n), os.SEEK_CUR); serr != nil {
if _, seekErr := f.base.Seek(int64(n), os.SEEK_CUR); seekErr != nil {
// only overwrite err in case the seek fails: we need to
// report an eventual io.EOF to the caller
err = seekErr