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