[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 3cfa0f7 2/2: Adjust permissions of compiler r
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 3cfa0f7 2/2: Adjust permissions of compiler runtime files |
Date: |
Wed, 13 May 2020 16:48:26 -0400 (EDT) |
branch: master
commit 3cfa0f7c788b989692ac8e8a397384a05022bf68
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Adjust permissions of compiler runtime files
It may seem not to matter if these files are writable by the user but
not the group; but making permissions the same for both enables
find /opt/lmi/ -perm -200 \! -perm -020
to be used as a postcondition test (which should find nothing at all).
---
GNUmakefile | 1 +
msw_cygwin.make | 1 +
msw_generic.make | 1 +
msw_wsl.make | 1 +
posix_fhs.make | 1 +
5 files changed, 5 insertions(+)
diff --git a/GNUmakefile b/GNUmakefile
index dffe339..35e787d 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -239,6 +239,7 @@ $(build_dir): $(gpl_files)
+@[ -d $(localincludedir) ] || $(MKDIR) --parents $(localincludedir)
+@for z in $(compiler_runtime_files); do \
$(CP) --archive --update $$z $(localbindir) ; \
+ $(CHMOD) -R g=u $(localbindir)/`basename $$z` ; \
done;
+@$(MAKETARGET)
diff --git a/msw_cygwin.make b/msw_cygwin.make
index 91e3a01..f6faa8d 100644
--- a/msw_cygwin.make
+++ b/msw_cygwin.make
@@ -92,6 +92,7 @@ compiler_runtime_files := \
# Required in /bin (if anywhere) by FHS-2.2 .
+CHMOD := chmod
CP := cp
DATE := date
ECHO := echo
diff --git a/msw_generic.make b/msw_generic.make
index 16b42ac..797bc05 100644
--- a/msw_generic.make
+++ b/msw_generic.make
@@ -72,6 +72,7 @@ compiler_runtime_files := \
# Required in /bin (if anywhere) by FHS-2.2 .
+CHMOD := chmod
CP := cp
DATE := date
ECHO := echo
diff --git a/msw_wsl.make b/msw_wsl.make
index aeecb35..3d325cd 100644
--- a/msw_wsl.make
+++ b/msw_wsl.make
@@ -72,6 +72,7 @@ compiler_runtime_files := \
# Required in /bin (if anywhere) by FHS-2.2 .
+CHMOD := chmod
CP := cp
DATE := date
ECHO := echo
diff --git a/posix_fhs.make b/posix_fhs.make
index c95e4b4..ae261de 100644
--- a/posix_fhs.make
+++ b/posix_fhs.make
@@ -60,6 +60,7 @@ RC :=
# Required in /bin (if anywhere) by FHS-2.2 .
+CHMOD := chmod
CP := cp
DATE := date
ECHO := echo