aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorqmuntal <quimmuntal@gmail.com>2025-02-18 11:55:07 +0100
committerQuim Muntal <quimmuntal@gmail.com>2025-02-19 04:43:02 -0800
commit4267fd389e941cf197cc3890cc42e474866c0d30 (patch)
tree3f067656ef2f6bba2877fb2ed5d65c481c683b3e /src/runtime
parenta08984bc8f2acacebeeadf7445ecfb67b7e7d7b1 (diff)
downloadgo-4267fd389e941cf197cc3890cc42e474866c0d30.tar.xz
syscall: don't truncate newly created files on Windows
There is no need for syscall.OpenFile to truncate newly created files. Some special Windows files, like the NUL device, can't be truncated, so we should avoid truncating unless it is really necessary. Fixes #71752. Change-Id: I8238048594f706f6a5281053d55cfe3dc898828d Reviewed-on: https://go-review.googlesource.com/c/go/+/650276 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions