- fix bug #491: pick program name (0th argument) as syslog identity.

git-svn-id: file:///svn/unbound/trunk@2885 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2013-04-18 12:14:40 +00:00
parent ce0d35d6ae
commit f556664960
2 changed files with 4 additions and 0 deletions

View 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) {

View 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.