Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix default permissions and umask handling #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

js731ca
Copy link

@js731ca js731ca commented Apr 27, 2024

On linux files are usually created with permissions set to 666+umask, and folders with 777+umask.

The codebase used to create files with 600 and folders with 700 unless a umask override was set in the configuration, then both files and folders would end up with 777+umask.

This patch addresses this by setting the umask override on process level; Creating files with permissions set to 666 and folders set to 777 - with either the overridden or the system default umask applied.

@js731ca js731ca force-pushed the default-permissions-and-umask branch from dcea57f to c7dcda7 Compare April 27, 2024 14:26
On linux files are usually created with permissions set to 666+umask,
and folders with 777+umask.

The codebase used to create files with 600 and folders with 700
*unless* a umask override was set in the configuration, then both
files and folders would end up with 777+umask.

This patch addresses this by setting the umask override on process
level; Creating files with permissions set to 666 and folders set to
777 - with either the overridden or the system default umask applied.

Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
@js731ca js731ca force-pushed the default-permissions-and-umask branch from c7dcda7 to a6f0a47 Compare April 27, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant