Skip to content

Commit b620f6f

Browse files
[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 <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]> (cherry picked from commit e39de05) Reviewed-on: https://go-review.googlesource.com/c/go/+/223962 Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent e577ba9 commit b620f6f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/go1.14.html

+12
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,18 @@ <h3 id="windows">Windows</h3>
7777
(Data Execution Prevention)</a> enabled.
7878
</p>
7979

80+
<p><!-- CL 202439 -->
81+
On Windows, creating a file
82+
via <a href="/pkg/os#CreateFile"><code>os.OpenFile</code></a> with
83+
the <a href="/pkg/os/#O_CREATE"><code>os.O_CREATE</code></a> flag, or
84+
via <a href="/pkg/syscall#Open"><code>syscall.Open</code></a> with
85+
the <a href="/pkg/syscall#O_CREAT"><code>syscall.O_CREAT</code></a>
86+
flag, will now create the file as read-only if the
87+
bit <code>0o200</code> (owner write permission) is not set in the
88+
permission argument. This makes the behavior on Windows more like
89+
that on Unix systems.
90+
</p>
91+
8092
<h3 id="wasm">WebAssembly</h3>
8193

8294
<p><!-- CL 203600 -->

0 commit comments

Comments
 (0)