Skip to content

Instantly share code, notes, and snippets.

@mkmik
Created June 6, 2011 21:07
Show Gist options
  • Save mkmik/1011112 to your computer and use it in GitHub Desktop.
Save mkmik/1011112 to your computer and use it in GitHub Desktop.
real fix
diff -r 0890b1488204 -r 897ba6cc2682 p/clnt/read.go
--- a/p/clnt/read.go Mon Jun 06 17:09:49 2011 +0200
+++ b/p/clnt/read.go Mon Jun 06 22:43:09 2011 +0200
@@ -107,9 +110,9 @@
for b := buf[0:n]; len(b) > 0; {
var d *p.Dir
- d, err = p.UnpackDir(b, file.fid.Clnt.Dotu)
- if err != nil {
- return nil, err
+ d, perr := p.UnpackDir(b, file.fid.Clnt.Dotu)
+ if perr != nil {
+ return nil, perr
}
b = b[d.Size+2 : len(b)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment