Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: No error on unwritable output file
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 10 Jul 2023 23:49:24 +0200 (CEST)
On Mon, 10 Jul 2023, Paul Gilmartin via curl-users wrote:
> Trying to inject an error for a test, I did chmod a-w of my --output
> file. Curl exited with status 0. I would have expected:
> curl: (23) Failure writing output to destination
I could not reproduce with 7.88.1 nor current git master:
$ ls -l output
-r--r--r-- 1 dast dast 5 Jul 9 23:57 output
$ curl localhost -o output --no-progress-meter
Warning: Failed to open the file output: Permission denied
curl: (23) Failure writing output to destination
$ echo $?
23
Date: Mon, 10 Jul 2023 23:49:24 +0200 (CEST)
On Mon, 10 Jul 2023, Paul Gilmartin via curl-users wrote:
> Trying to inject an error for a test, I did chmod a-w of my --output
> file. Curl exited with status 0. I would have expected:
> curl: (23) Failure writing output to destination
I could not reproduce with 7.88.1 nor current git master:
$ ls -l output
-r--r--r-- 1 dast dast 5 Jul 9 23:57 output
$ curl localhost -o output --no-progress-meter
Warning: Failed to open the file output: Permission denied
curl: (23) Failure writing output to destination
$ echo $?
23
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://curl.se/support.html -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2023-07-10