Closed orlitzky closed 7 months ago
One more: thank you.
If this causes problems for anyone, I'm available to help figure out a better solution than chmod.
Thank you for your contribution!
I've pushed the new release. Let's see if this is going to cause some issues.
Calling chmod() on newly-created files creates some problems that are discussed in depth in issue 320. Essentially, the plugin cannot know the access control mechanisms in use, and therefore cannot know what the "correct" permissions are. Two real consequences of this are,
Running "chmod 755" grants more permissions than is desired on a system where the umask would make them 750.
Changing the group bits breaks POSIX access control lists.
There are always better ways to address the problem of files being created with the wrong permissions, so this commit drops the calls to chmod() to undo the regression with respect to the above two items.
Closes: https://github.com/keycdn/cache-enabler/issues/320