Look in the configured sbin directory for the tincd binary.
This commit is contained in:
parent
fe2f1fceb5
commit
40bebbb19f
2 changed files with 2 additions and 2 deletions
|
@ -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`
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue