Skip to content

Commit

Permalink
v9.4
Browse files Browse the repository at this point in the history
- General | Our scripts do now internally enforce the default umask 0022. Many config and install options rely on this, hence it can cause issues when e.g. 0027 (deny read access for "other" users) has been applied on the parent shell. This affects only the (sub)shell of our scripts, while the current and default umask of parent and of shells/consoles remains untouched.
  • Loading branch information
MichaIng committed Apr 18, 2024
1 parent 68da00a commit c9cc8df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ v9.4
(2024-05-12)

Enhancements:
- General | Our scripts do now internally enforce the default umask 0022. Many config and install options rely on this, hence it can cause issues when e.g. 0027 (deny read access for "other" users) has been applied on the parent shell. This affects only the (sub)shell of our scripts, while the current and default umask of parent and of shells/consoles remains untouched.
- NanoPi R5C | New images, or when flashing the new bootloader binary via dietpi-config > Advanced Options > Update MMC bootloader, support M.2 WiFi modules.

Bug fixes:
Expand Down
3 changes: 3 additions & 0 deletions dietpi/func/dietpi-globals
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ G_GITOWNER='$G_GITOWNER'" > /boot/dietpi/.version
# Set PATH to expected default to rule out issues due to broken environment, e.g. in combination with "su" or "sudo -E"
export LC_ALL='C.UTF-8' LANG='C.UTF-8' PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'

# Enforce default umask: https://github.com/MichaIng/DietPi/issues/7022
umask 0022

# Set G_PROGRAM_NAME to originating script file (or shell executable) name if it was not set by originating script
[[ $G_PROGRAM_NAME ]] || readonly G_PROGRAM_NAME=${0##*/}

Expand Down

0 comments on commit c9cc8df

Please sign in to comment.