]> Cypherpunks repositories - gostls13.git/commit
os: check for valid Windows path when creating files
authorGeorge Adams <georgeadams1995@gmail.com>
Tue, 8 Oct 2024 09:52:54 +0000 (10:52 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Tue, 29 Oct 2024 15:25:26 +0000 (15:25 +0000)
commitb813465c4faeb3054a2689481b0b5f9562b8b077
treef6d6223a3b4bda0e63b1495e41061ddde857d1a1
parentfdfb3067a8a27a7491c3b0f6eddedbd467495329
os: check for valid Windows path when creating files

Checks for a valid Windows path by ensuring the path doesn't end with trailing spaces or periods.

Fixes #54040.

Cq-Include-Trybots: luci.golang.try:gotip-windows-arm64
Change-Id: I266f79963c821f8cc474097d3e57c5645ad996fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/618496
Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
src/os/export_windows_test.go
src/os/file.go
src/os/file_nonwindows.go [new file with mode: 0644]
src/os/file_windows.go
src/os/os_windows_test.go
src/os/path_windows.go
src/os/path_windows_test.go