mirror of
https://salsa.debian.org/debian/knockd
synced 2026-01-03 10:05:16 +00:00
23 lines
614 B
Diff
23 lines
614 B
Diff
From: Leo Antunes <costela@debian.org>
|
|
Date: Mon, 18 Oct 2021 23:17:54 +0200
|
|
Subject: change syslog facility to daemon
|
|
|
|
this is currently hardcoded
|
|
---
|
|
src/knockd.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/knockd.c b/src/knockd.c
|
|
index e607b6c..bd991c8 100644
|
|
--- a/src/knockd.c
|
|
+++ b/src/knockd.c
|
|
@@ -229,7 +229,7 @@ int main(int argc, char **argv)
|
|
strncpy(o_int, "eth0", sizeof(o_int)); /* no explicit termination needed */
|
|
}
|
|
if(o_usesyslog) {
|
|
- openlog("knockd", 0, LOG_USER);
|
|
+ openlog("knockd", 0, LOG_DAEMON);
|
|
}
|
|
if(strlen(o_logfile)) {
|
|
/* open the log file */
|