From e39de05186af24cec8a5f98258086e9899153e29 Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor
Date: Wed, 18 Mar 2020 08:34:36 -0700
Subject: [PATCH] doc/go1.14: mention Windows change for Open permissions
For #35033
Change-Id: Ie15353322d5cfe7320199103ad9543fb89a842ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/223957
Reviewed-by: Brendan Jackman
Reviewed-by: Bryan C. Mills
---
doc/go1.14.html | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/doc/go1.14.html b/doc/go1.14.html
index eb35fa8cae9d46..478035360a8c96 100644
--- a/doc/go1.14.html
+++ b/doc/go1.14.html
@@ -77,6 +77,18 @@ Windows
(Data Execution Prevention) enabled.
+
+ On Windows, creating a file
+ via os.OpenFile
with
+ the os.O_CREATE
flag, or
+ via syscall.Open
with
+ the syscall.O_CREAT
+ flag, will now create the file as read-only if the
+ bit 0o200
(owner write permission) is not set in the
+ permission argument. This makes the behavior on Windows more like
+ that on Unix systems.
+
+
WebAssembly