26 lines
689 B
Diff
26 lines
689 B
Diff
|
Author: Stefan Seyfried <seife+obs@b1-sytems.com>
|
||
|
|
||
|
When called from e.g. NetworkManager, vpnc's stderr log messages
|
||
|
are redirected to logfiles where they are sometimes hard to spot,
|
||
|
e.g. they appear to be coming from NetworkManager itself.
|
||
|
|
||
|
Fix this by prepending "vpnc: " to them.
|
||
|
|
||
|
|
||
|
Index: b/config.c
|
||
|
===================================================================
|
||
|
--- a/config.c
|
||
|
+++ b/config.c
|
||
|
@@ -50,10 +50,11 @@ uint16_t opt_nortel_client_id;
|
||
|
|
||
|
static void log_to_stderr(int priority __attribute__((unused)), const char *format, ...)
|
||
|
{
|
||
|
va_list ap;
|
||
|
|
||
|
+ fprintf(stderr, "vpnc: ");
|
||
|
va_start(ap, format);
|
||
|
vfprintf(stderr, format, ap);
|
||
|
fprintf(stderr, "\n");
|
||
|
va_end(ap);
|
||
|
}
|