aboutsummaryrefslogtreecommitdiff
path: root/src/exit
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-08-01 07:20:37 +0000
committerChristian Grothoff <christian@grothoff.org>2012-08-01 07:20:37 +0000
commitb7ca6765f707bdf074b948d17ce9e458f0bd680d (patch)
tree017b209c01c8a7fb047aacdc426e42a28370c14e /src/exit
parent94c672c467be073e9b62fe2c1b45267163f74db5 (diff)
downloadgnunet-b7ca6765f707bdf074b948d17ce9e458f0bd680d.tar.gz
gnunet-b7ca6765f707bdf074b948d17ce9e458f0bd680d.zip
-fixing installation scripts for suid binaries
Diffstat (limited to 'src/exit')
-rw-r--r--src/exit/Makefile.am2
-rw-r--r--src/exit/install-exit-helper.sh10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/exit/Makefile.am b/src/exit/Makefile.am
index b0b36c661..bc41e5c2c 100644
--- a/src/exit/Makefile.am
+++ b/src/exit/Makefile.am
@@ -18,7 +18,7 @@ dist_pkgcfg_DATA = \
18if LINUX 18if LINUX
19EXITBIN = gnunet-helper-exit 19EXITBIN = gnunet-helper-exit
20install-exec-hook: 20install-exec-hook:
21 $(top_srcdir)/src/exit/install-exit-helper.sh $(SUDO_BINARY) $(bindir) || true 21 $(top_srcdir)/src/exit/install-exit-helper.sh $(bindir) $(SUDO_BINARY) || true
22else 22else
23install-exec-hook: 23install-exec-hook:
24endif 24endif
diff --git a/src/exit/install-exit-helper.sh b/src/exit/install-exit-helper.sh
index afe37ec5e..76af4efa7 100644
--- a/src/exit/install-exit-helper.sh
+++ b/src/exit/install-exit-helper.sh
@@ -1,5 +1,5 @@
1#!/bin/bash 1#!/bin/bash
2# $1 - sudo binary 2# $1 - bindir
3# $2 - bindir 3# $2 - sudo binary (optional)
4$1 chown root:root $2/gnunet-helper-exit || true 4$2 chown root:root $1/gnunet-helper-exit || true
5$1 chmod u+s $2/gnunet-helper-exit || true 5$2 chmod u+s $1/gnunet-helper-exit || true