Commit a03e8a5b authored by Jeff Sickel's avatar Jeff Sickel Committed by David du Colombier

plan9: lookup query must seek to offset 0 before reading or

       writing /net/dns or /net/cs (see nbd(8)).

R=golang-codereviews
CC=0intro, golang-codereviews, rsc
https://golang.org/cl/49060043
parent e7c21703
......@@ -16,6 +16,10 @@ func query(filename, query string, bufSize int) (res []string, err error) {
}
defer file.Close()
_, err = file.Seek(0, 0)
if err != nil {
return
}
_, err = file.WriteString(query)
if err != nil {
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment