mirror of https://github.com/golang/go.git
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
This commit is contained in:
parent
e7c21703a8
commit
a03e8a5be0
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue