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

Commits on Apr 27, 2024

  1. fix default permissions and umask handling

    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 committed Apr 27, 2024
    Configuration menu
    Copy the full SHA
    a6f0a47 View commit details
    Browse the repository at this point in the history