I did this
As user1 :
curl -c cookies.txt ...
chmod 0666 cookies.txt
As user2
curl -c cookies.txt ...
=> cookies.txt mode is 0600, so user1 can no longer access it.
I expected the following
cookies.txt stays at 0666, or at least 0666 & ~umask.
curl/libcurl version
curl 8.4.0-DEV (Linux) libcurl/8.4.0-DEV OpenSSL/3.0.9 zlib/1.2.13 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4)
operating system
Fedora 38
I did this
As
user1:curl -c cookies.txt ...chmod 0666 cookies.txtAs
user2curl -c cookies.txt ...=>
cookies.txtmode is0600, souser1can no longer access it.I expected the following
cookies.txtstays at0666, or at least0666 & ~umask.curl/libcurl version
curl 8.4.0-DEV (Linux) libcurl/8.4.0-DEV OpenSSL/3.0.9 zlib/1.2.13 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4)
operating system
Fedora 38