Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug is os.ReadAt (with fix) #262

Closed
gopherbot opened this issue Nov 19, 2009 · 3 comments
Closed

Bug is os.ReadAt (with fix) #262

gopherbot opened this issue Nov 19, 2009 · 3 comments

Comments

@gopherbot
Copy link
Contributor

by lionkov:

os.ReadAt doesn't check for end of file. Similarly to os.Read, 

                if n == 0 && e == 0 {
                        return 0, EOF
                }

should be done after syscall.Pread.
@gopherbot
Copy link
Contributor Author

Comment 1 by lionkov:

Correction, the code should be:
if m==0 && e==0 {
    return n, EOF;
}

@robpike
Copy link
Contributor

robpike commented Nov 19, 2009

Comment 2:

Status changed to Accepted.

@robpike
Copy link
Contributor

robpike commented Nov 19, 2009

Comment 3:

This issue was closed by revision 4e201c7.

Status changed to Fixed.

Merged into issue #-.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants