]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- fix bug #491: pick program name (0th argument) as syslog identity.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 18 Apr 2013 12:14:40 +0000 (12:14 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 18 Apr 2013 12:14:40 +0000 (12:14 +0000)
git-svn-id: file:///svn/unbound/trunk@2885 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/unbound.c
doc/Changelog

index cd08c9c3f185451408f78b610c6d73c3713a4beb..dec337c02a842b4c02f8c228aa0ade03936a9a8b 100644 (file)
@@ -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) {
index e0fd36427c70b67eae1c431818300455d1bcaf74..0986353f1af66484e4b9154bb9d248f66847d64f 100644 (file)
@@ -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.