projects
/
openwrt
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2855be3
)
base-files: generate config files with correct permissions
author
Hans Dedecker
<dedeckeh@gmail.com>
Thu, 30 Apr 2020 19:29:09 +0000
(21:29 +0200)
committer
Hans Dedecker
<dedeckeh@gmail.com>
Thu, 30 Apr 2020 19:51:12 +0000
(21:51 +0200)
As touch creates files with permission 0644 use umask to create
config files with permission 0600 to be inline with INSTALL_CONF
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
package/base-files/files/bin/config_generate
patch
|
blob
|
history
diff --git
a/package/base-files/files/bin/config_generate
b/package/base-files/files/bin/config_generate
index 3bf48d72161f7ec1fd29327540a0e92be4385f3d..abb1388ba15dac23800b9dbb158296a8fbabefc6 100755
(executable)
--- a/
package/base-files/files/bin/config_generate
+++ b/
package/base-files/files/bin/config_generate
@@
-426,6
+426,8
@@
generate_gpioswitch() {
json_init
json_load "$(cat ${CFG})"
+umask 077
+
if [ ! -s /etc/config/network ]; then
touch /etc/config/network
generate_static_network