Closed adrian-bl closed 10 months ago
Friendly ping: would be nice to see this fixed upstream
Hi @adrian-bl, I ran this past the Terraform, Nomad, and Product Security teams, and got sign-off to merge. Thanks for the submission! (Specifically, @apparentlymart, @tgross, and @eastebry.)
The function already returns early if the specified 'netrc' configuration points to a non existing file, but currently returns an error if the OS reports ENOTDIR:
This will happen if the $HOME directory of the current user points to a file instead a directory - something eg. 'void linux' does for user 'nobody':
go-getter then attempts to open
/dev/null/.netrc
which fails with ENOTDIR - something that should just be treated the same way as a non existing file (in this case)