curl: add --create-file-mode [mode] #6244
This is a bad idea. The default should be whatever the remote provides, which may be based on directory permissions, ACLs, the server's configuration, the username/authentication credentials used...
Directory ACLs can provide a default permission for new files. Server configurations may provide a
Forcing 0644 would enforce a policy choice that may not match the remote server's requirements.
I support providing a means for the user to request specific permissions - this is a good idea. But the default should not be to override the remote's defaults. The default should be to do nothing - let the remote server do its job.
The same analysis applies to establishing file ownership -- absent a specific user request,
This is already what the code does, this PR doesn't introduce this.
No can do. We need to set the exact mode for all these three protocols. Unless you know more than I do.