mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 02:46:58 +00:00
Allow setting syslog identifier via startsyslog().
This commit is contained in:
parent
2d6bbf341d
commit
c59827334c
4
dbutil.c
4
dbutil.c
@ -84,9 +84,9 @@ int debug_trace = 0;
|
||||
#endif
|
||||
|
||||
#ifndef DISABLE_SYSLOG
|
||||
void startsyslog() {
|
||||
void startsyslog(const char *ident) {
|
||||
|
||||
openlog(PROGNAME, LOG_PID, LOG_AUTHPRIV);
|
||||
openlog(ident, LOG_PID, LOG_AUTHPRIV);
|
||||
|
||||
}
|
||||
#endif /* DISABLE_SYSLOG */
|
||||
|
2
dbutil.h
2
dbutil.h
@ -31,7 +31,7 @@
|
||||
#include "queue.h"
|
||||
|
||||
#ifndef DISABLE_SYSLOG
|
||||
void startsyslog();
|
||||
void startsyslog(const char *ident);
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
@ -367,8 +367,8 @@ static void commonsetup() {
|
||||
|
||||
struct sigaction sa_chld;
|
||||
#ifndef DISABLE_SYSLOG
|
||||
startsyslog();
|
||||
if (opts.usingsyslog) {
|
||||
startsyslog(PROGNAME);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user