diff options
author | Dave Brolley <brolley@redhat.com> | 2009-11-23 11:28:32 -0500 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-11-23 11:28:32 -0500 |
commit | ca7affd71849dd82bb8560dfbda6e9d3cbd50876 (patch) | |
tree | d23daa6be5bf08dee2b76acbf8a1bba7d8ca36e4 | |
parent | 68198d58ed89c14dfee442d3e68d324bde0d23e4 (diff) | |
download | systemtap-steved-ca7affd71849dd82bb8560dfbda6e9d3cbd50876.tar.gz systemtap-steved-ca7affd71849dd82bb8560dfbda6e9d3cbd50876.tar.xz systemtap-steved-ca7affd71849dd82bb8560dfbda6e9d3cbd50876.zip |
Make built files and directories writeable by the stap-server group individually.
-rw-r--r-- | runtime/uprobes/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/runtime/uprobes/Makefile b/runtime/uprobes/Makefile index 2f61358a..3be92ff6 100644 --- a/runtime/uprobes/Makefile +++ b/runtime/uprobes/Makefile @@ -19,11 +19,13 @@ default: done \ fi if test `id -u` -eq 0; then \ - chgrp stap-server $(CLEAN_FILES) 2>/dev/null || true; \ - chgrp stap-server $(CLEAN_DIRS) 2>/dev/null || true' \ - chgrp stap-server $(CLEAN_DIRS)/* 2>/dev/null || true; \ - chmod stap-server 775 $(CLEAN_DIRS)/* 2>/dev/null || true; \ + for f in $(CLEAN_FILES); do \ + test -e $$f && chgrp stap-server $$f && chmod 664 $$f; done; \ + for d in $(CLEAN_DIRS); do \ + test -d $$d && chgrp stap-server $$d && chmod 775 $$d; done \ fi + for d in $(CLEAN_DIRS); do \ + test -d $$d && chgrp stap-server $$d/* && chmod 664 $$d/*; done; # This target is used with "make -q" to see whether a "real" build is needed. uprobes.ko: $(DEPENDENCIES) |