summaryrefslogtreecommitdiffstats
path: root/usr.sbin/newsyslog
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2004-06-20 17:26:47 +0000
committergad <gad@FreeBSD.org>2004-06-20 17:26:47 +0000
commit5c21bd33720a99e6cf3c62eec27d5d2dc648a7e3 (patch)
treeb17e65bf9b7c5a071daf2ffe626d3108b5eb6dcf /usr.sbin/newsyslog
parente7c4cf72707a0c62b323fbba0247b08683890ee3 (diff)
downloadFreeBSD-src-5c21bd33720a99e6cf3c62eec27d5d2dc648a7e3.zip
FreeBSD-src-5c21bd33720a99e6cf3c62eec27d5d2dc648a7e3.tar.gz
Fix the format-string in a call to err(). It was causing a warning if
compiled on 4.x-stable.
Diffstat (limited to 'usr.sbin/newsyslog')
-rw-r--r--usr.sbin/newsyslog/newsyslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c
index c160432..df944e3 100644
--- a/usr.sbin/newsyslog/newsyslog.c
+++ b/usr.sbin/newsyslog/newsyslog.c
@@ -1801,7 +1801,7 @@ do_zipwork(struct zipwork_entry *zwork)
else if (!pidzip) {
/* The child process executes the compression command */
execl(pgm_path, pgm_path, "-f", zwork->zw_fname, (char *)0);
- err(1, pgm_path);
+ err(1, "%s", pgm_path);
}
wpid = waitpid(pidzip, &zstatus, 0);
OpenPOWER on IntegriCloud