Created
June 6, 2011 21:07
-
-
Save mkmik/1011112 to your computer and use it in GitHub Desktop.
real fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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