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