mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 13:21:15 +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
|
#endif
|
||||||
|
|
||||||
#ifndef DISABLE_SYSLOG
|
#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 */
|
#endif /* DISABLE_SYSLOG */
|
||||||
|
2
dbutil.h
2
dbutil.h
@ -31,7 +31,7 @@
|
|||||||
#include "queue.h"
|
#include "queue.h"
|
||||||
|
|
||||||
#ifndef DISABLE_SYSLOG
|
#ifndef DISABLE_SYSLOG
|
||||||
void startsyslog();
|
void startsyslog(const char *ident);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
@ -367,8 +367,8 @@ static void commonsetup() {
|
|||||||
|
|
||||||
struct sigaction sa_chld;
|
struct sigaction sa_chld;
|
||||||
#ifndef DISABLE_SYSLOG
|
#ifndef DISABLE_SYSLOG
|
||||||
startsyslog();
|
|
||||||
if (opts.usingsyslog) {
|
if (opts.usingsyslog) {
|
||||||
|
startsyslog(PROGNAME);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user