]> Cypherpunks repositories - gostls13.git/commit
path/filepath: fix match of \\?\c:\* on Windows
authorRuss Cox <rsc@golang.org>
Wed, 19 Oct 2016 04:01:31 +0000 (00:01 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 24 Oct 2016 16:24:20 +0000 (16:24 +0000)
commit452bbfc179d6739a404aacc819ec66acc71fc55c
treebf4ce233f6c731f3942a44cdbe321b1c61bf1328
parentc5ccbdd22bdbdc43d541b7e7d4ed66ceb559030e
path/filepath: fix match of \\?\c:\* on Windows

\\?\c:\ is a "root directory" that is not subject to further matching,
but the ? makes it look like a pattern, which was causing an
infinite recursion. Make sure the code understands the ? is not a pattern.

Fixes #15879.

Change-Id: I3a4310bbc398bcae764b9f8859c875317345e757
Reviewed-on: https://go-review.googlesource.com/31460
Reviewed-by: Quentin Smith <quentin@golang.org>
src/path/filepath/match.go
src/path/filepath/path_windows.go
src/path/filepath/path_windows_test.go