From f5566649601f41a692ea387ab9b755ef3c7878da Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Thu, 18 Apr 2013 12:14:40 +0000 Subject: [PATCH] - fix bug #491: pick program name (0th argument) as syslog identity. git-svn-id: file:///svn/unbound/trunk@2885 be551aaa-1e26-0410-a405-d3ace91eadb9 --- daemon/unbound.c | 1 + doc/Changelog | 3 +++ 2 files changed, 4 insertions(+) diff --git a/daemon/unbound.c b/daemon/unbound.c index cd08c9c3f..dec337c02 100644 --- a/daemon/unbound.c +++ b/daemon/unbound.c @@ -714,6 +714,7 @@ main(int argc, char* argv[]) #endif log_init(NULL, 0, NULL); + log_ident_set(strrchr(argv[0],'/')?strrchr(argv[0],'/')+1:argv[0]); /* parse the options */ while( (c=getopt(argc, argv, "c:dhvw:")) != -1) { switch(c) { diff --git a/doc/Changelog b/doc/Changelog index e0fd36427..0986353f1 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +18 April 2013: Wouter + - fix bug #491: pick program name (0th argument) as syslog identity. + 15 April 2013: Wouter - Fix so that for a configuration line of include: "*.conf" it is not an error if there are no files matching the glob pattern.