Guus Sliepen
cd5f222cc4
Remove use of strcpy() and sprintf().
...
Even though they were safe, compilers like to warn about them nowadays.
2016-04-15 11:25:18 +02:00
Guus Sliepen
0e8e53b4ce
Fix --logfile without a filename on Windows.
...
On Windows, the log filename now defaults to "tinc.log" in the same
directory as tinc.conf.
# Conflicts:
# src/tincd.c
2016-04-10 17:28:42 +02:00
thorkill
322ffadac4
Included missing names.h
2015-07-12 13:06:38 +02:00
Guus Sliepen
7f96ef081d
Fix check for LOCALSTATEDIR accessibility for the CLI.
...
The CLI does not need write access to the directory where the PID file
is stored, it just needs to be able to read the PID file.
2015-05-20 11:11:12 +02:00
Guus Sliepen
60fbdb3f2c
If LOCALSTATEDIR is inaccessible, store the pid and socket files in the configuration directory.
...
The compile time local state directory is usually /var or
/usr/local/var. If this is not accessible for some reason, for example
because someone ./configured tinc without --localstatedir and
/usr/local/var does not exist, or if tinc is started by a non-root user,
then tinc will fall back to the directory where tinc.conf is stored.
A warning is logged when this happens.
2015-05-19 22:17:18 +02:00
Guus Sliepen
26d3ee0dd9
Better default paths for log and PID files on Windows.
2014-12-27 09:08:34 +01:00
Guus Sliepen
e11daa2646
Don't try to mkdir(CONFDIR) if --config is used.
2013-09-08 15:03:06 +02:00
Guus Sliepen
918067f117
Fix warning "Both netname and configuration directory given" on Windows.
2013-07-15 14:48:43 +02:00
Guus Sliepen
3847b78ba5
Fix compiler warnings on Windows.
2013-02-20 15:34:55 +01:00
Guus Sliepen
a8b52becbb
Derive UNIX socket filename from PID filename.
2013-02-07 15:26:56 +01:00
Guus Sliepen
76dbcf8989
Fix tincctl init when /etc/tinc does not yet exist.
2013-01-20 21:02:58 +01:00
Guus Sliepen
94587264bd
Allow connections via UNIX sockets.
...
This is mainly useful for control connections. The client must still present
the control cookie from the PID file.
2013-01-17 18:12:55 +01:00
Guus Sliepen
f5bb64b36a
Move make_names() and related variables to its own source file.
2013-01-17 16:39:02 +01:00