From ae71a862b10264ecb56ba5ff3e3f27f439de4ccc Mon Sep 17 00:00:00 2001 From: qmuntal Date: Fri, 2 Jun 2023 10:25:20 +0200 Subject: [PATCH] doc/go1.21: document that os.TempDir now uses GetTempPath2W Updates #56899 Change-Id: Ibde69cd55c81ac0bb757b28b28d69463778dd117 Reviewed-on: https://go-review.googlesource.com/c/go/+/500255 Reviewed-by: Michael Knyszek TryBot-Result: Gopher Robot Run-TryBot: Quim Muntal Reviewed-by: Ian Lance Taylor --- doc/go1.21.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/go1.21.html b/doc/go1.21.html index 8e9b170882..1c7fb9ec5c 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -745,6 +745,15 @@ Do not send CLs removing the interior tags from such phrases. an error indicating that the file does not exist.

+

+ On Windows calling + TempDir now uses + GetTempPath2W when available, instead of GetTempPathW. The + new behavior is a security hardening measure that prevents + temporary files created by processes running as SYSTEM to + be accessed by non-SYSTEM processes. +

+

On Windows the os package now supports working with files whose names, stored as UTF-16, can't be represented as valid UTF-8. -- 2.50.0