]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lpc/cmds.c:
authorWarner Losh <imp@FreeBSD.org>
Sun, 27 Oct 1996 03:06:52 +0000 (03:06 +0000)
committerWarner Losh <imp@FreeBSD.org>
Sun, 27 Oct 1996 03:06:52 +0000 (03:06 +0000)
commitbc407914f9eebeab9e0aa769277c9c23acd8ea9c
tree66221bf4a36b58f86dc5901d5b3fa62ac74e6013
parent9c91ce9853ac062ee8a53633d768885e5d990bd7
lpc/cmds.c:
From NetBSD via OpenBSD to fix NetBSD PR #506
More descriptive message for printer status
(OpenBSD: 1.2)

Various warnings cleaned up (OpenBSD: 1.4)

lpc/lpc.c:
Various warnings cleaned up (OpenBSD: 1.3)

lpd/lpd.c:
Remove trailing blank lines (OpenBSD: 1.2)

Potential umask problem with creating /dev/printer
(OpenBSD: 1.4 and 1.5)

Ftp bounce attack (untested on FreeBSD)
(OpenBSD: 1.6, 1.8, 1.9)
Fencepost in strncpy
(OpenBSD: 1.6)

lpd/printjob.c:
Fix from freebsd for waiting for an exiting filter, that
appears not in the FreeBSD CVS tree.
(OpenBSD: 1.6)

lpd/recvjob.c:
Buffer overflow protection: use strncpy rather than strcpy.
(OpenBSD: 1.3)

lpr/lpr.c:
NetBSD change of return type for main()
(OpenBSD: 1.2)

Restrict time running as root
(OpenBSD: 1.7)

Use getcwd rather than getwd (from NetBSD)

Use snprintf rather than sprintf
(OpenBSD: 1.8)

Minor tweak to end of loop and buffer overflow sanity.  card()
overflow already in FreeBSD
(OpenBSD: 1.9)

lptest/lptest.c:
void -> int return type of main, from NetBSD via OpenBSD
(OpenBSD: 1.2)

pac/pac.c:
void -> int return type of main, from NetBSD via OpenBSD
(OpenBSD: 1.3)

Obtained from: OpenBSD
usr.sbin/lpr/common_source/recvjob.c
usr.sbin/lpr/lpc/cmds.c
usr.sbin/lpr/lpc/lpc.c
usr.sbin/lpr/lpd/lpd.c
usr.sbin/lpr/lpd/printjob.c
usr.sbin/lpr/lpd/recvjob.c
usr.sbin/lpr/lpr/lpr.c
usr.sbin/lpr/lptest/lptest.c
usr.sbin/lpr/pac/pac.c
usr.sbin/lpr/runqueue/printjob.c