]> git.meshlink.io Git - meshlink/commitdiff
Look in the configured sbin directory for the tincd binary.
authorGuus Sliepen <guus@tinc-vpn.org>
Thu, 11 Dec 2008 13:59:46 +0000 (13:59 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 11 Dec 2008 13:59:46 +0000 (13:59 +0000)
src/Makefile.am
src/tincctl.c

index acbf4193acc6d9fff7b6f195c9f0d33f8124f919..fb0b46cd36770dfd2a1a7fe80de74e32c3ad9549 100644 (file)
@@ -30,7 +30,7 @@ tincctl_LDADD = \
 
 localedir = $(datadir)/locale
 
-AM_CFLAGS = @CFLAGS@ -DCONFDIR=\"$(sysconfdir)\" -DLOCALEDIR=\"$(localedir)\" -DLOCALSTATEDIR=\"$(localstatedir)\"
+AM_CFLAGS = @CFLAGS@ -DCONFDIR=\"$(sysconfdir)\" -DLOCALEDIR=\"$(localedir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"
 
 dist-hook:
        rm -f `find . -type l`
index aed1c315a0009d489cd5e113f5a209843a88c78e..567e1c3decdd85c924c9351ecfc5d2bd127fa9af 100644 (file)
@@ -487,7 +487,7 @@ int main(int argc, char *argv[], char *envp[]) {
 
        if(!strcasecmp(argv[optind], "start")) {
                argv[optind] = NULL;
-               execve("tincd", argv, envp);
+               execve(SBINDIR "/tincd", argv, envp);
                fprintf(stderr, _("Could not start tincd: %s"), strerror(errno));
                return 1;
        }