Browse Source
GroupReader#Read: return io.EOF if file is empty
pull/1842/head
Anton Kaliaev
7 years ago
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
1 changed files with
2 additions and
0 deletions
-
autofile/group.go
|
|
@ -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 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|