diff options
author | Matt Kraai <kraai@debian.org> | 2000-12-07 16:22:04 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-12-07 16:22:04 +0000 |
commit | 7b5c16ebe5f1b057603cf1c0b0187be418725c42 (patch) | |
tree | bb5ba755e9719c21cb9cfea6960bf539ae547b5b | |
parent | 87afb526b534a962b471e1531702129b54bd5ac4 (diff) | |
download | busybox-7b5c16ebe5f1b057603cf1c0b0187be418725c42.tar.gz |
Fix by Tim Robbins <fyre@box3n.gumbynet.org> to prevent bad format
strings from being passed to syslog(3).
-rw-r--r-- | logger.c | 2 | ||||
-rw-r--r-- | sysklogd/logger.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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; diff --git a/sysklogd/logger.c b/sysklogd/logger.c index 2c460cc07..8e341efe9 100644 --- a/sysklogd/logger.c +++ b/sysklogd/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; |