Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auth: handle ENOTDIR when opening cert config
Some users explicitly have their home directories set to `/dev/null`. When opening a file that's "under that directory", instead of getting the normal `ENOENT`, one should expect to get `ENOTDIR`. Unfortunately, due to the variety of cases under which `ENOTDIR` is returned, the go team has declined to include ENOTDIR in `ErrNotExist`. (https://golang.org/issues/18974) This leaves explicitly testing for `ENOTDIR`, which (fortunately) appears to be one of two errnos that are defined in the `syscall` package for windows as well as all *nix platforms. resolves: googleapis#10696
- Loading branch information