]> Cypherpunks repositories - gostls13.git/commit
os: make Stat work on FAT file system
authorAlex Brainman <alex.brainman@gmail.com>
Sat, 15 Dec 2018 07:52:26 +0000 (18:52 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Mon, 17 Dec 2018 09:34:04 +0000 (09:34 +0000)
commite4535772ca3f11084ee5fa4d4bd3a542e143b80f
tree078f2e39cd3e9f8d4c62ce97935b04f033fbfd1c
parentbc175e53cc95d0f2026d06a1c8827246f9c55f8d
os: make Stat work on FAT file system

It appears calling GetFileInformationByHandleEx with
FILE_ATTRIBUTE_TAG_INFO fails on FAT file system. FAT does not
support symlinks, so assume there are no symlnks when
GetFileInformationByHandleEx returns ERROR_INVALID_PARAMETER.

Fixes #29214

Change-Id: If2d9f3288bd99637681ab5fd4e4581c77b578a69
Reviewed-on: https://go-review.googlesource.com/c/154377
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/types_windows.go