From b7ca6765f707bdf074b948d17ce9e458f0bd680d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 1 Aug 2012 07:20:37 +0000 Subject: -fixing installation scripts for suid binaries --- src/transport/Makefile.am | 2 +- src/transport/install-wlan-helper.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/transport') diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am index afbd10932..bee00d354 100644 --- a/src/transport/Makefile.am +++ b/src/transport/Makefile.am @@ -47,7 +47,7 @@ endif if LINUX install-exec-hook: - $(top_srcdir)/src/transport/install-wlan-helper.sh $(SUDO_BINARY) $(bindir) || true + $(top_srcdir)/src/transport/install-wlan-helper.sh $(bindir) $(SUDO_BINARY) || true else install-exec-hook: endif diff --git a/src/transport/install-wlan-helper.sh b/src/transport/install-wlan-helper.sh index 30258b8ce..54b3360be 100644 --- a/src/transport/install-wlan-helper.sh +++ b/src/transport/install-wlan-helper.sh @@ -1,5 +1,5 @@ #!/bin/bash -# $1 - sudo binary -# $2 - bindir -$1 chown root:root $2/gnunet-helper-transport-wlan || true -$1 chmod u+s $2/gnunet-helper-transport-wlan || true +# $1 - bindir +# $2 - sudo binary (optional) +$2 chown root:root $1/gnunet-helper-transport-wlan || true +$2 chmod u+s $1/gnunet-helper-transport-wlan || true -- cgit v1.2.3