go/src/path
Damien Neil 217ed95588 path/filepath: detect Windows CONIN$ and CONOUT$ paths in IsLocal
CreateFile creates a handle to the console input or screen buffer
when opening a file named CONIN$ or CONOUT$:

https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea#consoles

Detect these paths as non-local.

For #56219.

Change-Id: Ib09e76a110d6ec09aef8038074b9bcbae09d00d7
Reviewed-on: https://go-review.googlesource.com/c/go/+/451657
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
2022-11-17 18:24:36 +00:00
..
filepath path/filepath: detect Windows CONIN$ and CONOUT$ paths in IsLocal 2022-11-17 18:24:36 +00:00
example_test.go path,path/filepath: add Join examples with ".." components 2020-08-19 00:10:22 +00:00
match.go all: remove trailing blank doc comment lines 2022-04-01 18:18:07 +00:00
match_test.go io/fs, path, path/filepath, testing/fstest: validate patterns in Match, Glob 2020-10-23 14:59:03 +00:00
path.go all: gofmt main repo 2022-04-11 16:34:30 +00:00
path_test.go path: avoid import of strings 2020-10-13 01:12:09 +00:00