Mercurial > dropbear
comparison dbutil.c @ 1211:6ecc133fb2ee
Allow setting syslog identifier via startsyslog().
author | Konstantin Tokarev <ktokarev@smartlabs.tv> |
---|---|
date | Tue, 01 Dec 2015 21:54:03 +0300 |
parents | 36557295418e |
children | 2bb4c662d1c2 |
comparison
equal
deleted
inserted
replaced
1210:64a50eac1030 | 1211:6ecc133fb2ee |
---|---|
82 #ifdef DEBUG_TRACE | 82 #ifdef DEBUG_TRACE |
83 int debug_trace = 0; | 83 int debug_trace = 0; |
84 #endif | 84 #endif |
85 | 85 |
86 #ifndef DISABLE_SYSLOG | 86 #ifndef DISABLE_SYSLOG |
87 void startsyslog() { | 87 void startsyslog(const char *ident) { |
88 | 88 |
89 openlog(PROGNAME, LOG_PID, LOG_AUTHPRIV); | 89 openlog(ident, LOG_PID, LOG_AUTHPRIV); |
90 | 90 |
91 } | 91 } |
92 #endif /* DISABLE_SYSLOG */ | 92 #endif /* DISABLE_SYSLOG */ |
93 | 93 |
94 /* the "format" string must be <= 100 characters */ | 94 /* the "format" string must be <= 100 characters */ |