]> Cypherpunks repositories - gostls13.git/commit
path/filepath: in Rel use case-insensitive comparison on Windows
authorMohit Agarwal <mohit@sdf.org>
Mon, 16 Nov 2015 15:29:35 +0000 (20:59 +0530)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 17 Nov 2015 23:48:47 +0000 (23:48 +0000)
commit2619dccf3c44a38c7514c3db29d871d0640e83cb
tree77b303bf052292ceef4d221af587b062177e4c68
parent4d4a266780822acfdf58eaf9c0ba914024ff8bfa
path/filepath: in Rel use case-insensitive comparison on Windows

Compare basepath and targetpath using strings.EqualFold.  The absence
of this on Windows causes an unterminating condition in `for` statement
later in the function.

Fixes #13258

Change-Id: Ib5a0caba864ee425dc75ece47b9cf6fb626f47f1
Reviewed-on: https://go-review.googlesource.com/16857
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
src/path/filepath/path.go
src/path/filepath/path_test.go