]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.14: mention Windows change for Open permissions
authorIan Lance Taylor <iant@golang.org>
Wed, 18 Mar 2020 15:34:36 +0000 (08:34 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 18 Mar 2020 18:59:32 +0000 (18:59 +0000)
For #35033

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>
doc/go1.14.html

index eb35fa8cae9d4671f3839e5f715e4d194b081268..478035360a8c96b5bcafc2c5ea3a019ecc4da127 100644 (file)
@@ -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 -->