From f4d2a8d2adb32056e656a73ce3d1d1d155f81046 Mon Sep 17 00:00:00 2001 From: Yves Rutschle <git1@rutschle.net> Date: Sat, 22 Jul 2017 17:20:45 +0200 Subject: [PATCH] fix logging to specified facility --- common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.c b/common.c index 5cfa80d..be68338 100644 --- a/common.c +++ b/common.c @@ -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) */