Commit 01ca8a7e authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Copy attribute data into XAttrFs, so access to golden data does not

look like a race condition.
parent 8e70889f
...@@ -28,7 +28,10 @@ type XAttrTestFs struct { ...@@ -28,7 +28,10 @@ type XAttrTestFs struct {
func NewXAttrFs(nm string, m map[string][]byte) *XAttrTestFs { func NewXAttrFs(nm string, m map[string][]byte) *XAttrTestFs {
x := new(XAttrTestFs) x := new(XAttrTestFs)
x.filename = nm x.filename = nm
x.attrs = m x.attrs = make(map[string][]byte, len(m))
for k, v := range m {
x.attrs[k] = v
}
return x return x
} }
......
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