Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/usr.sbin/lpr/lpd pullup 1.23 -> 1.24 (approved by relen...



details:   https://anonhg.NetBSD.org/src/rev/564029915100
branches:  netbsd-1-5
changeset: 489551:564029915100
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Sep 28 01:37:35 2000 +0000

description:
pullup 1.23 -> 1.24 (approved by releng-1-5)

 > syslog() string format hole.
 > http://www.securityfocus.com/templates/archive.pike?start=2000-09-24&fromthread=0&mid=85023&list=1&end=2000-09-30&threads=0&;

diffstat:

 usr.sbin/lpr/lpd/printjob.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2228e7f953a2 -r 564029915100 usr.sbin/lpr/lpd/printjob.c
--- a/usr.sbin/lpr/lpd/printjob.c       Thu Sep 28 00:06:08 2000 +0000
+++ b/usr.sbin/lpr/lpd/printjob.c       Thu Sep 28 01:37:35 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: printjob.c,v 1.22 1999/12/11 02:01:18 mrg Exp $        */
+/*     $NetBSD: printjob.c,v 1.22.4.1 2000/09/28 01:37:35 itojun Exp $ */
 
 /*
  * Copyright (c) 1983, 1993
@@ -45,7 +45,7 @@
 #if 0
 static char sccsid[] = "@(#)printjob.c 8.7 (Berkeley) 5/10/95";
 #else
-__RCSID("$NetBSD: printjob.c,v 1.22 1999/12/11 02:01:18 mrg Exp $");
+__RCSID("$NetBSD: printjob.c,v 1.22.4.1 2000/09/28 01:37:35 itojun Exp $");
 #endif
 #endif /* not lint */
 
@@ -1255,7 +1255,7 @@
        (void)snprintf(&pxlength[2], sizeof(pxlength) - 2, "%ld", PY);
        cgetstr(bp, "rm", &RM);
        if ((s = checkremote()) != NULL)
-               syslog(LOG_WARNING, s);
+               syslog(LOG_WARNING, "%s", s);
 
        cgetstr(bp, "af", &AF);
        cgetstr(bp, "of", &OF);



Home | Main Index | Thread Index | Old Index