]> Cypherpunks repositories - gostls13.git/commit
syscall: swap src, dest arguments in convertFromDirents11 for FreeBSD
authorYuval Pavel Zholkover <paulzhol@gmail.com>
Sat, 20 Oct 2018 15:54:07 +0000 (18:54 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 24 Oct 2018 15:43:41 +0000 (15:43 +0000)
commit5a7cfbc0117bce314c3f079ece459173b9efc854
tree5a4bcc79adbb9b6620e0793afbf9003db566ed13
parenteef0140137bae3bc059f598843b8777f9223fac8
syscall: swap src, dest arguments in convertFromDirents11 for FreeBSD

make fixedSize, oldFixedSize constants.
use st instead of stat for function arg so that we do not shadow the stat() function.

dstPos+reclen == len(buf) is a valid write location, update the break condition.

Change-Id: I55f9210f54d24a3f9cda1ebab52437436254f8f4
Reviewed-on: https://go-review.googlesource.com/c/143637
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/syscall/export_freebsd_test.go [new file with mode: 0644]
src/syscall/syscall_freebsd.go
src/syscall/syscall_freebsd_test.go [new file with mode: 0644]