diff options
| author | Richard Miller <miller.research@gmail.com> | 2018-02-19 12:34:53 +0000 |
|---|---|---|
| committer | David du Colombier <0intro@gmail.com> | 2018-02-20 13:21:12 +0000 |
| commit | a156fc08b7fd289bfc9979c77445f9e4741a7dfd (patch) | |
| tree | d44a8ea6f9fe3c86fc89dd608b90595ed34dbf92 /src/database | |
| parent | 9b7f221a3af2ee8495129621a5012647ffe15eb1 (diff) | |
| download | go-a156fc08b7fd289bfc9979c77445f9e4741a7dfd.tar.xz | |
syscall: ensure Mkdir(path) on Plan 9 fails if path exists
On Plan 9, the underlying create() syscall with DMDIR flag, which is
used to implement Mkdir, will fail silently if the path exists and
is not a directory. Work around this by checking for existence
first and rejecting Mkdir with error EEXIST if the path is found.
Fixes #23918
Change-Id: I439115662307923c9f498d3e7b1f32c6d205e1ad
Reviewed-on: https://go-review.googlesource.com/94777
Reviewed-by: David du Colombier <0intro@gmail.com>
Diffstat (limited to 'src/database')
0 files changed, 0 insertions, 0 deletions
