mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-09 16:01:19 +01:00
Name of program and trailing \n will be added by syslog(3)
This commit is contained in:
parent
97a729ff22
commit
48060c09ef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53770
@ -216,11 +216,11 @@ main(argc, argv)
|
||||
openlog("rwhod", LOG_PID, LOG_DAEMON);
|
||||
sp = getservbyname("who", "udp");
|
||||
if (sp == NULL) {
|
||||
syslog(LOG_ERR, "rwhod: udp/who: unknown service\n");
|
||||
syslog(LOG_ERR, "udp/who: unknown service");
|
||||
exit(1);
|
||||
}
|
||||
if (chdir(_PATH_RWHODIR) < 0) {
|
||||
syslog(LOG_ERR, "rwhod: %s: %m\n", _PATH_RWHODIR);
|
||||
syslog(LOG_ERR, "%s: %m", _PATH_RWHODIR);
|
||||
exit(1);
|
||||
}
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user