syslogd: NetBSD/FreeBSD -T option, log remote msgs with local time

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2019-11-13 16:16:23 +01:00
parent 12fa1f6682
commit c465f340bc
2 changed files with 11 additions and 1 deletions

View File

@@ -233,6 +233,7 @@ int usage(int code)
" -s Operate in secure mode, do not log messages from remote machines.\n"
" If specified twice, no socket at all will be opened, which also\n"
" disables support for logging to remote machines.\n"
" -T Use local time and date for all messages recived from remote hosts.\n"
" -? Show this help text\n"
" -v Show program version and exit\n"
"\n"
@@ -336,6 +337,10 @@ int main(int argc, char *argv[])
SecureMode++;
break;
case 'T':
RemoteAddDate = 1;
break;
case 'v':
printf("syslogd v%s\n", VERSION);
exit(0);