Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netrc: replace fgets with Curl_get_line #9789

Closed
wants to merge 1 commit into from
Closed

Conversation

bagder
Copy link
Member

@bagder bagder commented Oct 24, 2022

Make the parser only accept complete lines and avoid problems with overly long lines.

Reported-by: Hiroki Kurosawa

Make the parser only accept complete lines and avoid problems with
overly long lines.

Reported-by: Hiroki Kurosawa
@bagder bagder added the tidy-up label Oct 24, 2022
@bagder bagder closed this in c97ec98 Oct 24, 2022
@bagder bagder deleted the bagder/netrc-read-line branch October 24, 2022 09:29
@fredericgermain
Copy link

For info, this PR was included in curl 7.86.0 shipped with MacOS Ventura 13.2 (MacOS Ventura 13.1 had curl 7.85.0).

But #9973 was not included on curl 7.86.0, so there is a bug about .netrc files not ending with newlines not being handled properly on mac venture 13.2.

@bagder
Copy link
Member Author

bagder commented Jan 30, 2023

That sounds like an Apple problem.

@fredericgermain
Copy link

When I compile 7.86.0 on linux, there is this problem. it's a curl 7.86.0 problem.

@bagder
Copy link
Member Author

bagder commented Jan 30, 2023

Sure, which is why we fixed the problem and included that in an update.

@curl curl locked as resolved and limited conversation to collaborators Jan 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

None yet

2 participants