Browse Source

GroupReader#Read: return io.EOF if file is empty

pull/1842/head
Anton Kaliaev 7 years ago
parent
commit
21b2c26fb1
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      autofile/group.go

+ 2
- 0
autofile/group.go View File

@ -606,6 +606,8 @@ func (gr *GroupReader) Read(p []byte) (n int, err error) {
}
} else if err != nil {
return n, err
} else if nn == 0 { // empty file
return n, err
}
}


Loading…
Cancel
Save