From: Wouter Wijngaards Date: Thu, 18 Apr 2013 12:14:40 +0000 (+0000) Subject: - fix bug #491: pick program name (0th argument) as syslog identity. X-Git-Tag: release-1.4.21rc1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5566649601f41a692ea387ab9b755ef3c7878da;p=thirdparty%2Funbound.git - fix bug #491: pick program name (0th argument) as syslog identity. git-svn-id: file:///svn/unbound/trunk@2885 be551aaa-1e26-0410-a405-d3ace91eadb9 --- 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.