Vilbrekin
f2570c1b7f
Replace hard-code with new ScriptsInterpreter configuration property.
...
This new setting allows choosing a custom script interpreter used for the various tinc callbacks.
If none is specified, the script itself is called as executable (as before).
This is particularly useful when storing tinc configuration and script on a mount point with no-exec attribute.
2012-09-24 13:55:24 +02:00
Vilbrekin
8a6f278fd2
Basic patch for android cross-compilation.
...
Commented non-existing functions in android NDK.
Prefix scripts execution with shell binary to allow execution on no-exec mount points.
Everyything is currently hard coded, while it should use pre-compiler variables...
2012-09-24 13:53:11 +02:00
Guus Sliepen
178e52f76e
Allow linking with multiple device drivers.
...
Apart from the platform specific tun/tap driver, link with the dummy and
raw_socket devices, and optionally with support for UML and VDE devices.
At runtime, the DeviceType option can be used to select which driver to
use.
2011-12-04 01:20:59 +01:00
Guus Sliepen
6d08eb1614
Fix sparse warnings and add an extra sprinkling of const.
...
This is more or less the equivalent of Sven-Haegar Koch's fixes in the 1.1
branch.
2011-05-28 23:36:52 +02:00
Guus Sliepen
67766d65f0
Update THANKS and copyright information.
2011-05-08 21:22:20 +02:00
Guus Sliepen
257cb6ac60
Always use the default signal handler for ABRT signals.
...
This will allow coredumps to be generated when tinc is daemonized.
Also add the -kABRT option.
2011-05-08 12:40:44 +02:00
Guus Sliepen
e764ff7be9
Fix variable length array declaration.
2010-11-16 16:45:36 +01:00
Guus Sliepen
9e3ca39773
Use variable length arrays instead of alloca().
2010-11-13 15:55:38 +01:00
Guus Sliepen
f5122ccece
Fix all warnings when compiling with mingw64.
2010-05-01 15:39:59 +02:00
Guus Sliepen
d331f04e45
Start a tinc service if it already exists.
2009-11-01 15:57:28 +01:00
Guus Sliepen
4c85542894
Drop support for localisation.
...
Localised messages don't make much sense for a daemon, and there is only the
Dutch translation which costs time to maintain.
2009-09-25 00:54:07 +02:00
Guus Sliepen
a227843b73
Remove checkpoint tracing.
...
This feature is not necessary anymore since we have tools like valgrind today
that can catch stack overflow errors before they make a backtrace in gdb
impossible.
2009-09-25 00:33:04 +02:00
Guus Sliepen
5dde6461a3
K&R style braces.
...
This is essentially commit f02d3ed3e1
from the
1.1 branch, making it easier to merge between master and 1.1.
2009-09-25 00:14:03 +02:00
Guus Sliepen
ab7c61b06f
Update the address of the Free Software Foundation in all copyright headers.
2009-09-25 00:01:00 +02:00
Guus Sliepen
c217d214f4
Remove all occurences of $Id$.
2009-09-24 23:39:16 +02:00
Guus Sliepen
c23fcf555e
Update copyright information.
...
- Update year numbers in copyright headers.
- Add copyright information for Michael Tokarev and Florian Forster to the
copyright headers of files to which they have contributed significantly.
- Mention Michael and Florian in AUTHORS.
- Mention that tinc is GPLv3 or later if compiled with the --enable-tunemu
flag.
2009-09-24 23:29:46 +02:00
Guus Sliepen
633c0cf1b0
Use access() instead of stat() for checking whether scripts exist.
2009-09-15 00:36:07 +02:00
Guus Sliepen
a60a0a1f13
Don't stat() on iPhone/iPod.
...
Grzegorz Dymarek noted that tinc segfaults at the stat() call in
execute_script() on the iPhone. We can omit the stat() call for the moment,
the subsequent call to system() will fail with just a warning.
2009-09-10 19:51:08 +02:00
Guus Sliepen
f52ea0a7eb
UNIX signal numbers start at 1.
2009-09-08 18:21:52 +02:00
Guus Sliepen
73d77dd416
Replace asprintf() by xasprintf().
2009-09-08 18:18:36 +02:00
Guus Sliepen
e9576632dc
Update copyright information.
2008-12-22 20:27:52 +00:00
Guus Sliepen
d7ca0300a3
Handle SERVICE_CONTROL_INTERROGATE requests. Thanks to Carsten Ralle for noticing this.
2007-08-17 22:09:00 +00:00
Guus Sliepen
45fca3c723
Apply patch from Scott Lamb fixing some memory and resource leaks.
2007-02-14 09:21:34 +00:00
Guus Sliepen
de78d79db8
Update copyright notices, remove Ivo's email address.
2006-04-26 13:52:58 +00:00
Guus Sliepen
df3220a154
Update copyright notices.
2005-05-04 18:09:30 +00:00
Guus Sliepen
fe0bfa3e65
Correct size argument for strncat().
2005-01-04 22:18:58 +00:00
Guus Sliepen
faff649882
Don't let tinc service depend on NDIS component.
2004-11-01 15:18:22 +00:00
Guus Sliepen
6411e0d8bd
strndupa() is too arcane for some environments.
2004-10-01 18:24:41 +00:00
Guus Sliepen
e5e0dd7534
Clean up environment after executing scripts.
2004-06-14 14:32:10 +00:00
Guus Sliepen
7926a156e5
Update copyrights, links, email addresses and let Subversion update $Id$ keywords.
2004-03-21 14:21:22 +00:00
Guus Sliepen
a3cd273751
Missing space between words.
2003-12-07 14:29:02 +00:00
Guus Sliepen
0b5e6cf04e
Complain if pid file cannot be created.
2003-11-27 23:24:59 +00:00
Guus Sliepen
5900c07fab
PIDs are of type pid_t, and use %ld when reading/writing them to the pidfile.
2003-10-06 16:13:08 +00:00
Guus Sliepen
3e0b28b0c4
Remove debug message.
2003-08-22 15:07:57 +00:00
Guus Sliepen
570e7e9c61
Don't overwrite the first " when installing a service.
2003-08-22 15:05:01 +00:00
Guus Sliepen
5ac4179df6
If we're not in main_loop() and the service is stopped, exit immediately.
2003-08-17 12:05:08 +00:00
Guus Sliepen
fd40130eb6
stat() batch files under Windows.
2003-08-16 12:11:11 +00:00
Guus Sliepen
ae070b9170
Add a description for the Service control panel.
2003-08-10 13:35:05 +00:00
Guus Sliepen
7eed829d28
Only system() needs script name quoted.
2003-08-08 22:45:46 +00:00
Guus Sliepen
9bde92ce97
Simpler checking of permissions on private RSA key and other fixes.
2003-08-08 22:11:54 +00:00
Guus Sliepen
96f5d98fc2
Small things.
2003-08-08 19:56:11 +00:00
Guus Sliepen
7f05445047
Quote when needed and don't try stuff that doesn't work under Windows.
2003-08-08 19:43:47 +00:00
Guus Sliepen
691907caae
Readd quotes.
2003-08-08 17:17:13 +00:00
Guus Sliepen
863349638b
Simplify execute_script(). It will probably work under Windows as well.
2003-08-08 14:48:33 +00:00
Guus Sliepen
070aee3be1
Tell windows to be patient.
2003-08-08 12:55:05 +00:00
Guus Sliepen
62a7fa9a7b
Simplify translation
2003-08-03 21:45:13 +00:00
Guus Sliepen
3671ed806d
Keep Windows happy.
2003-08-03 12:38:18 +00:00
Guus Sliepen
f08fc359a0
Install tinc as a service under Windows (MinGW). Remove cleanup_and_exit(),
...
either exit() directly on errors or let main_loop() shutdown gracefully.
2003-08-02 20:50:38 +00:00
Guus Sliepen
2531ff59b7
Woops!
2003-07-31 14:24:19 +00:00
Guus Sliepen
d798b8b3d8
Prevent definitions from messing up attributes.
2003-07-30 21:52:41 +00:00