fix logging to specified facility

This commit is contained in:
Yves Rutschle 2017-07-22 17:20:45 +02:00
parent aa06261d70
commit f4d2a8d2ad

View File

@ -654,7 +654,7 @@ void setup_syslog(const char* bin_name) {
exit(1);
}
openlog(name2, LOG_CONS, fn);
openlog(name2, LOG_CONS, facilitynames[fn].c_val);
free(name1);
/* Don't free name2, as openlog(3) uses it (at least in glibc) */