Look in the configured sbin directory for the tincd binary.

This commit is contained in:
Guus Sliepen 2008-12-11 13:59:46 +00:00
parent fe2f1fceb5
commit 40bebbb19f
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ tincctl_LDADD = \
localedir = $(datadir)/locale 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: dist-hook:
rm -f `find . -type l` rm -f `find . -type l`

View file

@ -487,7 +487,7 @@ int main(int argc, char *argv[], char *envp[]) {
if(!strcasecmp(argv[optind], "start")) { if(!strcasecmp(argv[optind], "start")) {
argv[optind] = NULL; argv[optind] = NULL;
execve("tincd", argv, envp); execve(SBINDIR "/tincd", argv, envp);
fprintf(stderr, _("Could not start tincd: %s"), strerror(errno)); fprintf(stderr, _("Could not start tincd: %s"), strerror(errno));
return 1; return 1;
} }