Skip to content

Parsing might be too strict #1

@bgentry

Description

@bgentry

@deafbybeheading had the following messed up .netrc file:

machine me.test.com
  login [email protected]
  password REDACTED
machine me2.test.com
  login [email protected]
  password 
REDACTED api.heroku.com
  login [email protected]
  password REDACTED
machine code.test.com
  login [email protected]
  password REDACTED

Where each use of REDACTED was a password. Somehow geemus/netrc was able to read hid creds from this file, but go-netrc wasn't.

I'm actually not sure that we should handle this. If the .netrc is clearly invalid, you should have to fix it. The netrc manpage certainly makes me think it's invalid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions