aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-03-18 08:34:36 -0700
committerIan Lance Taylor <iant@golang.org>2020-03-18 20:51:21 +0000
commitb620f6fde52f8b568c4bc0cd9b5a7cff151b6024 (patch)
treec14531c9c7c1582c9f735f4d5f4092b2d7818747
parente577ba98d8d9f4464d6dfaaf2fa51d328233c81e (diff)
downloadgo-b620f6fde52f8b568c4bc0cd9b5a7cff151b6024.tar.gz
go-b620f6fde52f8b568c4bc0cd9b5a7cff151b6024.zip
[release-branch.go1.14] doc/go1.14: mention Windows change for Open permissions
For #35033 For #36878 Change-Id: Ie15353322d5cfe7320199103ad9543fb89a842ed Reviewed-on: https://go-review.googlesource.com/c/go/+/223957 Reviewed-by: Brendan Jackman <jackmanb@google.com> Reviewed-by: Bryan C. Mills <bcmills@google.com> (cherry picked from commit e39de05186af24cec8a5f98258086e9899153e29) Reviewed-on: https://go-review.googlesource.com/c/go/+/223962 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
-rw-r--r--doc/go1.14.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/go1.14.html b/doc/go1.14.html
index eb35fa8cae..478035360a 100644
--- a/doc/go1.14.html
+++ b/doc/go1.14.html
@@ -77,6 +77,18 @@ Do not send CLs removing the interior tags from such phrases.
(Data Execution Prevention)</a> enabled.
</p>
+<p><!-- CL 202439 -->
+ On Windows, creating a file
+ via <a href="/pkg/os#CreateFile"><code>os.OpenFile</code></a> with
+ the <a href="/pkg/os/#O_CREATE"><code>os.O_CREATE</code></a> flag, or
+ via <a href="/pkg/syscall#Open"><code>syscall.Open</code></a> with
+ the <a href="/pkg/syscall#O_CREAT"><code>syscall.O_CREAT</code></a>
+ flag, will now create the file as read-only if the
+ bit <code>0o200</code> (owner write permission) is not set in the
+ permission argument. This makes the behavior on Windows more like
+ that on Unix systems.
+</p>
+
<h3 id="wasm">WebAssembly</h3>
<p><!-- CL 203600 -->