Chdir() to the configuration directory instead of /.
[tinc] / src / linux /
drwxr-xr-x   ..
-rw-r--r-- 5320 device.c