Skip to content

Commit

Permalink
Fix empty reads
Browse files Browse the repository at this point in the history
  • Loading branch information
0xff8 authored and dguerri committed Aug 30, 2023
1 parent 27ba905 commit a8da9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/satellite/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (fso *DockerFuseFSOps) Read(request rpccommon.ReadRequest, reply *rpccommon

data := make([]byte, request.Num)
n, err := file.ReadAt(data, request.Offset)
if err != nil {
if err != nil && (err.Error() != "EOF" || n <= 0) {
return rpccommon.ErrnoToRPCErrorString(err)
}

Expand Down

0 comments on commit a8da9a8

Please sign in to comment.