lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master b432b15f 4/4: Force setgid bit for all ccache


From: Greg Chicares
Subject: [lmi-commits] [lmi] master b432b15f 4/4: Force setgid bit for all ccache subdirectories
Date: Fri, 3 Mar 2023 22:02:26 -0500 (EST)

branch: master
commit b432b15f7efe89a2e15b029bd80d52c73f90486d
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Force setgid bit for all ccache subdirectories
    
    See:
      https://ccache.dev/manual/4.4.1.html#_sharing_a_cache
---
 install_msw.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/install_msw.sh b/install_msw.sh
index 376b78fe..011b9870 100755
--- a/install_msw.sh
+++ b/install_msw.sh
@@ -338,6 +338,10 @@ done
 
 find /srv/cache_for_lmi/downloads -type f -print0 | xargs --null md5sum
 
+# Make sure the setgid bit is set for all ccache subdirectories.
+find "$autotooled_cache" -type d -print0 | xargs -0 chmod g+s
+find "$CCACHE_DIR"       -type d -print0 | xargs -0 chmod g+s
+
 # GID should be the same for all files.
 find /opt/lmi/ -not -group "$(id -gn "$(logname)")" -print
 # User and group permissions should be the same throughout $(prefix).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]