diff options
| author | Keith Randall <keithr@alum.mit.edu> | 2019-04-05 09:03:46 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2019-04-05 16:42:06 +0000 |
| commit | c7a4099b9926b466b55c7271868d9dfb0271117e (patch) | |
| tree | aebd74cfce098de1509aef925ce4a63b89f0e343 /src/database/sql/sql_test.go | |
| parent | db0c524211d82af1f632b78c80d22d734c8b1be2 (diff) | |
| download | go-c7a4099b9926b466b55c7271868d9dfb0271117e.tar.xz | |
syscall: dup the argument to fdopendir
fdopendir takes ownership of its file descriptor argument.
Getdirentries shouldn't do that, so dup the file descriptor
before passing to fdopendir.
Fixes #31269
Change-Id: Ie36be8fd6c59eb339dcc9f40228d4191fc1e5850
Reviewed-on: https://go-review.googlesource.com/c/go/+/170698
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/database/sql/sql_test.go')
0 files changed, 0 insertions, 0 deletions
