Commit cd97de67 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Use simpler cast for string -> []byte conversion.

parent a3e84e09
......@@ -290,7 +290,7 @@ func (me *FileSystemConnector) Readlink(header *InHeader) (out []byte, code Stat
return nil, ENOENT
}
val, err := mount.fs.Readlink(fullPath, &header.Context)
return bytes.NewBufferString(val).Bytes(), err
return []byte(val), err
}
func (me *FileSystemConnector) Mknod(header *InHeader, input *MknodIn, name string) (out *EntryOut, code Status) {
......
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