2021-04-21 10:01:53 +02:00
|
|
|
Index: monitoring-plugins-2.3.1/plugins-root/Makefile.am
|
2014-07-15 16:54:25 +02:00
|
|
|
===================================================================
|
2021-04-21 10:01:53 +02:00
|
|
|
--- monitoring-plugins-2.3.1.orig/plugins-root/Makefile.am
|
|
|
|
+++ monitoring-plugins-2.3.1/plugins-root/Makefile.am
|
2014-07-15 16:54:25 +02:00
|
|
|
@@ -47,7 +47,6 @@ INSTALL_SUID = \
|
|
|
|
echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p"; \
|
|
|
|
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p; \
|
|
|
|
echo " chown root $(DESTDIR)$(libexecdir)/$$p"; \
|
|
|
|
- chown root $(DESTDIR)$(libexecdir)/$$p; \
|
|
|
|
echo " chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p"; \
|
|
|
|
chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p; \
|
|
|
|
done
|
2020-09-14 14:35:19 +02:00
|
|
|
@@ -66,11 +65,11 @@ install-exec-local: $(noinst_PROGRAMS)
|
2014-07-15 16:54:25 +02:00
|
|
|
&& chmod $(setuid_root_mode) $$TMPFILE > /dev/null 2>&1 \
|
|
|
|
&& can_create_suid_root_executable=yes; \
|
|
|
|
rm -f $$TMPFILE; \
|
|
|
|
- if test $$can_create_suid_root_executable = yes; then \
|
|
|
|
- $(INSTALL_SUID); \
|
2020-09-14 14:35:19 +02:00
|
|
|
- else \
|
2014-07-15 16:54:25 +02:00
|
|
|
- echo "WARNING: insufficient access; not installing setuid plugins"; \
|
2021-04-21 10:01:53 +02:00
|
|
|
+ $(INSTALL_SUID); \
|
|
|
|
+ if test $$can_create_suid_root_executable != yes; then \
|
2014-07-15 16:54:25 +02:00
|
|
|
+ echo "WARNING: insufficient access; not installing plugins as setuid"; \
|
|
|
|
echo "NOTE: to install setuid plugins, run 'make install-root' as root"; \
|
|
|
|
+ echo "NOTE: or fix this in your packaging (like the specfile)"; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
# /* Author Coreutils team sub-citation */
|