-
-
Notifications
You must be signed in to change notification settings - Fork 267
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 support #116
Comments
- Metalink: <#225> - .netrc support: <#116> Signed-off-by: Ismael Luceno <[email protected]>
I would like to try to implement this feature, as I already have implemented a (somewhat naive, but working) simple
Thanks in advance. |
This implementation parses the $HOME/.netrc (or a file specified by the user) through the `--netrc[=file]` or `-R[file]` options. It uses a simple FSM in order to parse the file and find the credentials corresponding to the FTP host, or uses the "default" entry otherwise, if any, according to the specification found on [1]. Tokens not applicable to axel usage were not considered. [1] https://docs.oracle.com/cd/E19455-01/806-0633/6j9vn6q5f/index.html Closes: axel-download-accelerator#116 Signed-off-by: David Polverari <[email protected]>
I submitted a PR that implements the feature. I intend to enhance some points of the implementation in the future, but for now it seemed to work for me. Tests are welcome. I purposefully didn't change any of the .po files because of my ignorance of internationalization issues, so the new messages added to print_help() do not appear at the moment, in spite of the options being functional. |
From Debian[1]:
Axel should try to use the .netrc file when trying to login to an FTP server.
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=127074
Regards,
Eriberto
The text was updated successfully, but these errors were encountered: