Skip to content

--netrc-file with non-existent / non-readable file - no error message #16163

Closed

Description

@arlt

I did this

curl --location https://fqdn/file --netrc-file which_does_not_exist doesn't produce an error message / is silently ignored

I expected the following

curl output:

curl: netrc-file "which_does_not_exist" is not readable or does not exist

curl/libcurl version

curl 7.76.1 (x86_64-redhat-linux-gnu) libcurl/7.76.1 OpenSSL/3.2.2 zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0) libssh/0.10.4/openssl/zlib nghttp2/1.43.0
Release-Date: 2021-04-14
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets

operating system

Linux myvm 5.14.0-503.22.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jan 15 08:02:15 EST 2025 x86_64 x86_64 x86_64 GNU/Linux

Activity

  1. self-assigned this
    on Feb 4, 2025
  2. added a commit that references this issue on Feb 4, 2025
    e629198
  3. added a commit that references this issue on Feb 6, 2025
    943de21
  4. added a commit that references this issue on Apr 26, 2025
    e2d1e0c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions