diff options
author | Thomas Eberhardt <sneakywumpus@gmail.com> | 2023-11-16 09:59:38 +0000 |
---|---|---|
committer | Gordon Bergling <gbe@FreeBSD.org> | 2023-12-01 07:16:38 +0000 |
commit | 1023abd5b60f82360ea9f09b9af06dd30d6d8c18 (patch) | |
tree | ce52dbfe6e48f8fe8f4eb019af180d0deabfd928 | |
parent | 1bb2a240232ea5b8cc3a63e61b30243e87acbdf2 (diff) | |
download | src-1023abd5b60f82360ea9f09b9af06dd30d6d8c18.tar.gz src-1023abd5b60f82360ea9f09b9af06dd30d6d8c18.zip |
Fix /root permissions after 'make installworld'
According to /etc/mtree/BSD.root.dist /root should have
0750 permissions, but the build target 'make installworld'
changes these to 0755.
This is caused by the installation of the configuration
files of sh(1) and csh(1).
Correct this by specifying the correct default /root permissions.
PR: 273342
Reviewed by: jilles
Approved by: jilles
MFC after: 2 weeks
Differential Revision:https://reviews.freebsd.org/D42395
(cherry picked from commit a6ed8c9593031abf6fa73661be55c226caa362d6)
-rw-r--r-- | bin/csh/Makefile | 1 | ||||
-rw-r--r-- | bin/sh/Makefile | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/bin/csh/Makefile b/bin/csh/Makefile index d7049cf99918..d7d4ea8038fe 100644 --- a/bin/csh/Makefile +++ b/bin/csh/Makefile @@ -11,6 +11,7 @@ CONFGROUPS= ETC ROOT ETC= csh.cshrc csh.login csh.logout ROOT= dot.cshrc dot.login ROOTDIR= /root +ROOTDIR_MODE= 0750 ROOTNAME_dot.cshrc= .cshrc ROOTNAME_dot.login= .login PACKAGE=runtime diff --git a/bin/sh/Makefile b/bin/sh/Makefile index e34471da8835..5f0138e693a0 100644 --- a/bin/sh/Makefile +++ b/bin/sh/Makefile @@ -6,6 +6,7 @@ CONFGROUPS= ETC ROOT ETC= profile ROOT= dot.shrc dot.profile ROOTDIR= /root +ROOTDIR_MODE= 0750 ROOTNAME_dot.shrc= .shrc ROOTNAME_dot.profile= .profile PACKAGE=runtime |