- Add "vpnc: " prefix to stderr logmessages - change License field to GPL-2.0+ (bnc#731966) - update to rev 481 of nortel branch - better version of vpnc-ipid.diff upstream - various code cleanups - log to stdout instead of syslog in debug mode - fix pidfile writing (/var/run/vpnc does not necessarily exist) OBS-URL: https://build.opensuse.org/request/show/98755 OBS-URL: https://build.opensuse.org/package/show/network/vpnc?expand=0&rev=63
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);
|
|
}
|