aboutsummaryrefslogtreecommitdiff
path: root/src/dns
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/dns
parent94c672c467be073e9b62fe2c1b45267163f74db5 (diff)
-fixing installation scripts for suid binaries
Diffstat (limited to 'src/dns')
-rw-r--r--src/dns/Makefile.am2
-rw-r--r--src/dns/install-dns-helper.sh16
2 files changed, 9 insertions, 9 deletions
diff --git a/src/dns/Makefile.am b/src/dns/Makefile.am
index 59395700a5..8a102c414b 100644
--- a/src/dns/Makefile.am
+++ b/src/dns/Makefile.am
@@ -18,7 +18,7 @@ pkgcfg_DATA = \
if LINUX
HIJACKBIN = gnunet-helper-dns
install-exec-hook:
- $(top_srcdir)/src/dns/install-dns-helper.sh $(SUDO_BINARY) $(bindir) $(GNUNETDNS_GROUP) || true
+ $(top_srcdir)/src/dns/install-dns-helper.sh $(bindir) $(GNUNETDNS_GROUP) $(SUDO_BINARY) || true
else
install-exec-hook:
endif
diff --git a/src/dns/install-dns-helper.sh b/src/dns/install-dns-helper.sh
index ac42e1f290..bf2dd427df 100644
--- a/src/dns/install-dns-helper.sh
+++ b/src/dns/install-dns-helper.sh
@@ -1,9 +1,9 @@
#!/bin/bash
-# $1 - sudo binary
-# $2 - bindir
-# $3 - gnunetdns group
-$1 chown root $2/gnunet-helper-dns || true
-$1 chgrp $3 $2/gnunet-helper-dns || true
-$1 chmod 4750 $2/gnunet-helper-dns || true
-$1 chown gnunet:$3 $2/gnunet-service-dns || true
-$1 chmod 2750 $2/gnunet-service-dns || true
+# $1 - bindir
+# $2 - gnunetdns group
+# $3 - sudo binary (optional)
+$3 chown root $1/gnunet-helper-dns || true
+$3 chgrp $2 $1/gnunet-helper-dns || true
+$3 chmod 4750 $1/gnunet-helper-dns || true
+$3 chown gnunet:$2 $1/gnunet-service-dns || true
+$3 chmod 2750 $1/gnunet-service-dns || true