Fix by Tim Robbins <fyre@box3n.gumbynet.org> to prevent bad format
strings from being passed to syslog(3).
This commit is contained in:
parent
87afb526b5
commit
7b5c16ebe5
2
logger.c
2
logger.c
@ -156,7 +156,7 @@ extern int logger_main(int argc, char **argv)
|
||||
}
|
||||
|
||||
openlog(name, option, (pri | LOG_FACMASK));
|
||||
syslog(pri, message);
|
||||
syslog(pri, "%s", message);
|
||||
closelog();
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
|
@ -156,7 +156,7 @@ extern int logger_main(int argc, char **argv)
|
||||
}
|
||||
|
||||
openlog(name, option, (pri | LOG_FACMASK));
|
||||
syslog(pri, message);
|
||||
syslog(pri, "%s", message);
|
||||
closelog();
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user