You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@bagder that is an allowed way for fwrite to work. If buffering is in use (and large enough), the write to the buffer works fine and it returns the right amount of data written to the buffer.
One has to check the return value of fflush or fclose to see that everything was written.
I did this
curl -D /dev/full https://github.com/ > /dev/null
and got 0 as exit code.
I expected the following
I expected to get an exit code 23 from curl when the headers couldn't be written because of ENOSPC.
curl/libcurl version
curl 7.81.0, curl from master (acb9eff).
operating system
Linux LUM-PF3VPCE9 6.5.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: