projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bd978c
)
Chdir() to the configuration directory instead of /.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 17 Apr 2016 12:04:57 +0000
(14:04 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 17 Apr 2016 12:04:57 +0000
(14:04 +0200)
src/process.c
patch
|
blob
|
history
src/tincd.c
patch
|
blob
|
history
diff --git
a/src/process.c
b/src/process.c
index
cbc816b
..
5d78c29
100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-203,7
+203,7
@@
bool detach(void) {
if(do_detach) {
#ifndef HAVE_MINGW
- if(daemon(
0
, 0)) {
+ if(daemon(
1
, 0)) {
logger(DEBUG_ALWAYS, LOG_ERR, "Couldn't detach from terminal: %s", strerror(errno));
return false;
}
diff --git
a/src/tincd.c
b/src/tincd.c
index
15a5622
..
3bc17e2
100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-338,6
+338,7
@@
int main(int argc, char **argv) {
return 1;
make_names(true);
+ chdir(confbase);
if(show_version) {
printf("%s version %s (built %s %s, protocol %d.%d)\n", PACKAGE,