diff options
author | Dave Brolley <brolley@redhat.com> | 2009-11-20 17:23:29 -0500 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-11-20 17:23:29 -0500 |
commit | 68198d58ed89c14dfee442d3e68d324bde0d23e4 (patch) | |
tree | caaf5b9ca6d284ac303014bf34134af9483bd297 /runtime/uprobes/Makefile | |
parent | baba4e15bf291b698986f703c9ec89742012922c (diff) | |
download | systemtap-steved-68198d58ed89c14dfee442d3e68d324bde0d23e4.tar.gz systemtap-steved-68198d58ed89c14dfee442d3e68d324bde0d23e4.tar.xz systemtap-steved-68198d58ed89c14dfee442d3e68d324bde0d23e4.zip |
Only attempt to change the group permissions of built items if we are root.
Diffstat (limited to 'runtime/uprobes/Makefile')
-rw-r--r-- | runtime/uprobes/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/runtime/uprobes/Makefile b/runtime/uprobes/Makefile index e58373af..2f61358a 100644 --- a/runtime/uprobes/Makefile +++ b/runtime/uprobes/Makefile @@ -18,9 +18,12 @@ default: fi \ done \ fi - 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 + 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; \ + fi # This target is used with "make -q" to see whether a "real" build is needed. uprobes.ko: $(DEPENDENCIES) |