Convert tincd path args to absolute paths
authorKirill Isakov <bootctl@gmail.com>
Thu, 28 Apr 2022 15:05:36 +0000 (21:05 +0600)
committerKirill Isakov <bootctl@gmail.com>
Thu, 28 Apr 2022 15:05:36 +0000 (21:05 +0600)
commit3d787920d51a35e74e442c7265be3b13b69ad8e4
tree0c3199a7c17d055e430d8696111d54d2b049569b
parent76de8e3924fc36e5a3e906741bf640dceb846800
Convert tincd path args to absolute paths

Since tincd chdirs to its own configuration directory and only then
resolves relative paths passed as command-line arguments (like --config
and --pidfile), statements like these:

$ tinc -c confdir init foo

$ tincd -c confdir -D

didn't work properly.

Now we resolve paths to absolute right when we receive them, and only
then do chdir.
src/tincd.c
src/utils.c
src/utils.h
test/integration/commandline.py
test/integration/testlib/check.py
test/integration/testlib/util.py
test/unit/test_utils.c