]> Cypherpunks repositories - gostls13.git/commit
os: change Open(`C:`) to open current directory on C:
authorAlex Brainman <alex.brainman@gmail.com>
Wed, 30 Dec 2015 01:13:21 +0000 (12:13 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Thu, 31 Dec 2015 00:20:54 +0000 (00:20 +0000)
commitca471573958c12093b1e3b29bc17926105d80143
tree81c3acd3e356efbc5cdd0b00125faef91f2e43f3
parente35901fd65a9c0f475de260a79b7b628d9d07ebf
os: change Open(`C:`) to open current directory on C:

Open(`C:`) currently opens root directory on C:. Change that to open
current directory on C:. Just like cmd.exe's "dir C:" command does.
Just like FindFirstFile("C:*") Windows API does. It is also consistent
with what filepath.Join("C:", "a") currently does.

Fixes #13763

Change-Id: I60b6e7d80215d110bbbb6265c9f32717401638c6
Reviewed-on: https://go-review.googlesource.com/18184
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
src/os/file_windows.go
src/os/os_windows_test.go