Skip site navigation (1)Skip section navigation (2)

CVS log for src/usr.sbin/lpr/lpd/lpd.c

[BACK] Up to [FreeBSD] / src / usr.sbin / lpr / lpd

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.43.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (2 months, 4 weeks ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.43.2.1: preferred, colored
Changes since revision 1.43.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)

Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)

Revision 1.41.24.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)

Revision 1.42.2.1.6.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.42.2.1: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.2.1: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Dec 11 09:38:12 2010 UTC (13 months, 4 weeks ago) by joel
Branches: MAIN
CVS tags: RELENG_9_BP, HEAD
Branch point for: RELENG_9
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +0 -4 lines
SVN rev 216372 on 2010-12-11 09:38:12Z by joel

Remove the advertising clause from UCB copyrighted files in usr.sbin.  This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Revision 1.42.2.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 4 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.42.2.1: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.2.1: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)

Revision 1.41.22.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (2 years ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)

Revision 1.42.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.42.2.1: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.2.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)

Revision 1.42.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_2_BP, RELENG_8_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_2, RELENG_8_1, RELENG_8_0
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)

Revision 1.41.20.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)

Revision 1.41.18.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)

Revision 1.41.16.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)

Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Nov 7 10:53:35 2007 UTC (4 years, 3 months ago) by kevlo
Branches: MAIN
CVS tags: RELENG_8_BP
Branch point for: RELENG_8
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -2 lines
Cleanup of userland __P use

Revision 1.40.4.1: download - view: text, markup, annotated - select for diffs
Sat May 28 11:54:37 2005 UTC (6 years, 8 months ago) by ume
Branches: RELENG_5
CVS tags: RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +3 -3 lines
MFC: NI_WITHSCOPEID cleanup

	contrib/tcp_wrappers/hosts_access.c:		1.5
	contrib/tcp_wrappers/socket.c:			1.8
	contrib/telnet/telnetd/telnetd.c:		1.28
	lib/libc/net/rcmd.c:				1.41
	lib/libc/net/res_send.c:			1.50
	lib/libpam/modules/pam_unix/pam_unix.c:		1.50
	lib/libutil/logwtmp.c:				1.20
	lib/libutil/realhostname.c:			1.18
	libexec/rlogind/rlogind.c:			1.44
	libexec/tftpd/tftpd.c:				1.36
	release/picobsd/tinyware/login/pico-login.c:	1.6
	sbin/ifconfig/af_inet6.c:			1.2
	sbin/route/route.c:				1.78
	usr.bin/netstat/route.c:			1.76
	usr.sbin/inetd/inetd.c:				1.129
	usr.sbin/lpr/common_source/net.c:		1.9
	usr.sbin/lpr/lpd/lpd.c:				1.41
	usr.sbin/mountd/mountd.c:			1.81
	usr.sbin/ppp/ncpaddr.c:				1.16
	usr.sbin/rip6query/rip6query.c:			1.7
	usr.sbin/syslogd/syslogd.c:			1.143

Revision 1.41: download - view: text, markup, annotated - select for diffs
Fri May 13 16:43:28 2005 UTC (6 years, 8 months ago) by ume
Branches: MAIN
CVS tags: RELENG_7_BP, RELENG_7_4_BP, RELENG_7_3_BP, RELENG_7_2_BP, RELENG_7_1_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0, RELENG_7, RELENG_6_BP, RELENG_6_4_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3, RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0, RELENG_6
Branch point for: RELENG_7_4, RELENG_7_3, RELENG_7_2, RELENG_7_1, RELENG_6_4
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3 lines
NI_WITHSCOPEID cleanup

Reviewed by:	gad

Revision 1.12.2.24: download - view: text, markup, annotated - select for diffs
Mon Aug 18 18:27:45 2003 UTC (8 years, 5 months ago) by gad
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11, RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
Diff to: previous 1.12.2.23: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.23: +1 -1 lines
MFC *: Use STDIN_FILENO, STDOUT_FILENO, and STDERR_FILENO in a few more
places (replacing constants 0, 1 & 2).

[* = 1.40 lpd.c, 1.60 printjob.c, 1.30 recvjob.c]

Noticed by:	David Hill

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Aug 13 20:31:33 2003 UTC (8 years, 5 months ago) by gad
Branches: MAIN
CVS tags: RELENG_5_BP, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3, RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2
Branch point for: RELENG_5
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +1 -1 lines
Use STDIN_FILENO, STDOUT_FILENO, and STDERR_FILENO in a few more
places (replacing constants 0, 1 & 2).

Noticed by:
Reviewed by:	md5
MFC after:	4 days

Revision 1.12.2.23: download - view: text, markup, annotated - select for diffs
Tue Jul 29 17:52:24 2003 UTC (8 years, 6 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.22: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.22: +5 -4 lines
MFC:  all lpr/lpd/* changes to use __FBSDID(), and to fix 'sccsid'
lines to consistently match style(9) guidelines.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Jul 14 19:59:33 2003 UTC (8 years, 6 months ago) by gad
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -0 lines
Get the 'sccsid' lines even closer to correct style(9) form.  The
'#ifdef lint/#endif' around the lines should not have been removed.

Reviewed by:	noticed by bde
MFC after:	15 days

Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Jul 14 15:54:40 2003 UTC (8 years, 6 months ago) by gad
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +1 -3 lines
More changes to use __FBSDID() for setting rcsids, and fix the
format of 'sccsid' lines so they consistently match style(9)
guidelines.  Inspired by recent update to lpd.c by charnier.

Reviewed by:	discussed on cvs-src & with bde and obrien
MFC after:	15 days

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Jul 6 12:44:10 2003 UTC (8 years, 7 months ago) by charnier
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +5 -4 lines
add FBSDID

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Jul 22 18:16:05 2002 UTC (9 years, 6 months ago) by ume
Branches: MAIN
CVS tags: RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1, RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -4 lines
use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.

Approved by:	gad

Revision 1.12.2.22: download - view: text, markup, annotated - select for diffs
Sun Jun 30 04:09:11 2002 UTC (9 years, 7 months ago) by gad
Branches: RELENG_4
CVS tags: RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8, RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7
Diff to: previous 1.12.2.21: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.21: +88 -64 lines
MFC 1.35: Redo the way that fatal-error messages are done in the chkhost()
routine, mainly so the compiler can correctly do printf-style parameter
checking (mainly to get rid of a few compile-time warnings).

Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Jun 24 20:57:14 2002 UTC (9 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +88 -64 lines
Redo the way that fatal-error messages are done in the chkhost() routine,
mainly so the compiler can correctly do printf-style parameter checking.
Some minor improvements to a few of the error messages, but the main
goal here is to get rid of a few more compile-time warning messages.

MFC after:	5 days

Revision 1.12.2.21: download - view: text, markup, annotated - select for diffs
Wed Jun 19 23:40:54 2002 UTC (9 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.20: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.20: +2 -2 lines
MFC *: Stop using the depreciated 'union wait' definitions, moving to a more
standard handling of wait()-related routines.
   and
Avoid checking WIFEXITED and WTERMSIG in some error situations where the
value in wstatus is not related to the process that we care about.

[* = 1.34 lpd.c, 1.53->1.54 printjob.c]

Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Jun 3 20:47:01 2002 UTC (9 years, 8 months ago) by gad
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -2 lines
Stop using the depreciated 'union wait' definitions, moving to a more
standard handling of wait()-related routines.

Submitted by:	mike
MFC after:	2 weeks

Revision 1.12.2.20: download - view: text, markup, annotated - select for diffs
Wed Apr 24 22:26:36 2002 UTC (9 years, 9 months ago) by gad
Branches: RELENG_4
CVS tags: RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6
Diff to: previous 1.12.2.19: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.19: +15 -11 lines
MFC *: Change lpd to recognize the '-s' parameter as a preferred
synonym for what is currently the '-p' parameter.  '-s' is what
NetBSD uses, and it also matches the '-s' option in syslogd.

[* = 1.23 lpd.8, 1.33 lpd.c]

Revision 1.12.2.19: download - view: text, markup, annotated - select for diffs
Tue Apr 23 22:41:30 2002 UTC (9 years, 9 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.18: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.18: +2 -2 lines
MFC 1.32: Fix 'deamon' -> 'daemon' in a comment.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Apr 19 19:33:24 2002 UTC (9 years, 9 months ago) by gad
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +15 -11 lines
Change lpd to recognize the '-s' parameter as a preferred synonym
for what is currently the '-p' parameter.  '-s' is what NetBSD
used (and they implemented it before I added -p in FreeBSD), and
it also matches the '-s' option in syslogd.  Someone in OpenBSD
land had also talked about adding a '-s' option, but it hasn't
happened yet.

MFC after:	5 days

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Apr 19 18:36:56 2002 UTC (9 years, 9 months ago) by gad
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -2 lines
Fix 'deamon' -> 'daemon' in a comment.

Obtained from:	NetBSD, OpenBSD
MFC after:	4 days

Revision 1.12.2.18: download - view: text, markup, annotated - select for diffs
Sun Jul 29 23:09:15 2001 UTC (10 years, 6 months ago) by gad
Branches: RELENG_4
CVS tags: RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5, RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4
Diff to: previous 1.12.2.17: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.17: +3 -3 lines
MFC 1.31: Fix two compile-time warnings by defining fromlen as socklen_t.

Revision 1.12.2.17: download - view: text, markup, annotated - select for diffs
Sun Jul 29 23:02:52 2001 UTC (10 years, 6 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.16: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.16: +28 -5 lines
MFC *: Rename the -w option to be -W (-w is already used by NetBSD).  For
now, -w is still accepted, but prints out some warnings via syslog.

[* = 1.22 lpd.8, 1.30 lpd.c]

Revision 1.12.2.16: download - view: text, markup, annotated - select for diffs
Sun Jul 29 22:58:17 2001 UTC (10 years, 6 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.15: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.15: +2 -2 lines
MFC *: Change a few read & write calls to use 'STDOUT_FILENO' instead of '1'.

[* = 1.29 lpd.c, 1.23 recvjob.c]

Submitted by:	David Hill <david@phobia.ms>

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Jul 23 00:13:02 2001 UTC (10 years, 6 months ago) by gad
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3 lines
Fix two compile-time warnings by defining fromlen as socklen_t.

MFC after:	1 week

Revision 1.12.2.15: download - view: text, markup, annotated - select for diffs
Sun Jul 22 02:51:53 2001 UTC (10 years, 6 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.14: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.14: +3 -3 lines
MFC *: Fix most of the warnings generated when compiling lpr with
-Wnon-const-format, often by just telling gcc that some internal routine
is "__printflike" (mostly done by kris@FreeBSD.org).
[* = 1.21 displayq.c, 1.18 lp.h, 1.18 cmds.c, 1.28 lpd.c, 1.40 printjob.c,
 1.21 recvjob.c, 1.11 lpq.c]

Revision 1.12.2.14: download - view: text, markup, annotated - select for diffs
Sun Jul 22 02:39:45 2001 UTC (10 years, 6 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.13: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.13: +7 -2 lines
MFC *: Change signal-handling to reset SIGCHLD to SIGDFLT instead of SIG_IGN.
This fixes a problem with using print filters (if=, of=, etc) that showed
up in -current (although this fix is fine for stable too).
[* = 1.27 lpd.c, 1.39 printjob.c]

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Jul 22 01:05:20 2001 UTC (10 years, 6 months ago) by gad
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +28 -5 lines
Rename the -w option to be -W.  The recently-added -w option is different
than the long-standing -w option in NetBSD, so change it before anyone in
FreeBSD gets used to it.  For now, -w is still accepted, but prints out
some warnings via syslog.

MFC after:	1 week

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Jul 22 00:03:21 2001 UTC (10 years, 6 months ago) by gad
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -2 lines
Change a few read & write calls to use 'STDOUT_FILENO' instead of '1'.

Submitted by:	David Hill <david@phobia.ms>
Reviewed by:	freebsd-audit  (a little)
MFC after:	1 week

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Jul 15 00:09:46 2001 UTC (10 years, 6 months ago) by gad
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
Fix most of the warnings generated by compiling lpr with -Wnon-const-format,
often by just telling gcc that some internal routine is "__printflike"
(work done by Kris Kennaway <kris@FreeBSD.org>).  Also fix the new warnings
which show up once gcc starts checking the "printf-like parameters" passed
to those routines.

MFC after:	1 week

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Jul 14 21:49:17 2001 UTC (10 years, 6 months ago) by gad
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +7 -2 lines
Change signal-handling to reset SIGCHLD to SIGDFLT instead of SIG_IGN.
This fixes a problem with using print filters (if=, of=, etc) that showed
up in -current around June 20th.  That problem initially reported by
Georg-W Koltermann <gwk@sgi.com>, while most of the investigation that
led to this fix was done by Anton Berezin <tobez@FreeBSD.org>.

Reviewed by:	freebsd-print@bostonradio.org
MFC after:	1 week

Revision 1.12.2.13: download - view: text, markup, annotated - select for diffs
Wed Jul 11 23:22:06 2001 UTC (10 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.12: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.12: +137 -31 lines
...[MFC]  Add '-w' option, which allows lpd connections from non-priv ports
(basically, from some windows implementations of lpd).  Also add '-c' option,
which causes lpd to log all connection errors to syslog (in addition to
sending a message to the connecting host).

The '-w' change allows a sysadmin to again accept connections which had been
(mistakenly) accepted before 4.3-release.           [1.19 lpd.8, 1.26 lpd.c]

Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Jun 25 01:45:25 2001 UTC (10 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +137 -31 lines
Add two new options for lpd: -c will log all connection-errors to syslog,
while -w allows connection from non-reserved ports.  Also improves the
helpfulness of various connection-error messages.

The changes for IPv6 added back in the reserved-port check which was mistakenly
dropped from lpd in 1997 (copying a change from openbsd).  It is best to have
that check in place, but the check breaks lpr's from some implementations of
lpr/lpd for Windows.  The -w option is for those admins who need to accept
jobs from non-reserved ports, the -c option is for admins who would like a
print-server machine to log all failed connection-attempts to syslog.

Reviewed by:	freebsd-audit@FreeBSD.org  freebsd-print@bostonradio.org
MFC after:	2 weeks

Revision 1.12.2.12: download - view: text, markup, annotated - select for diffs
Mon Jun 25 01:19:11 2001 UTC (10 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.11: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.11: +2 -2 lines
[MFC from 2001/06/15]   -r 1.25
Get rid of a trigraph ("??>") mistakenly put in an error message.
One less warning to annoy me...

Revision 1.12.2.11: download - view: text, markup, annotated - select for diffs
Mon Jun 25 01:15:01 2001 UTC (10 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.10: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.10: +16 -20 lines
[MFC from 2001/06/15]   -r 1.23 -> 1.24
Makes a minor change so socket-debug processing works the same as it did
before the IPv6 commit.  Probably irrelevent to freebsd, but I think it
was useful on other OS's.  Also makes a few minor style chgs.

Reviewed by:	freebsd-print@bostonradio.org

Revision 1.12.2.10: download - view: text, markup, annotated - select for diffs
Mon Jun 25 01:01:00 2001 UTC (10 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.9: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.9: +20 -21 lines
[MFC from 2001/06/15]
Rename a few global variables which hold hostname-related values to be
more sensible/understandable.  'from'->'from_host'  'host'->'local_host'
'fromb'->'frombuf'  'fromhost'->'origin_host'  and a local-variable
named 'host'->'hostbuf'.

Other than renaming variables, the only actual code changes are to call
strlcpy() instead of strncpy() when setting those (renamed) variables,
and that 'from_ip' is now a strdup()-created buffer instead of being a
static buffer compiled in as 1025 bytes.

Reviewed by:	freebsd-print@bostonradio.org

Revision 1.12.2.9: download - view: text, markup, annotated - select for diffs
Mon Jun 25 00:49:00 2001 UTC (10 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.8: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.8: +2 -2 lines
[MFC from 2001/06/15]
Rename global variable 'name' to 'progname', thus fixing about 10 warnings
which come up for various routines that have a parameter also called 'name'.

Reviewed by:	freebsd-print@bostonradio.org

Revision 1.12.2.8: download - view: text, markup, annotated - select for diffs
Mon Jun 25 00:37:27 2001 UTC (10 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.7: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.7: +20 -27 lines
[MFC from 2001/06/12]
Fix about 85 warnings one gets when trying to compile lpr&friends
with BDECFLAGS on, mainly by adding 'const' to parameters in a number
of routine declarations.  While I'm at it, ANSI-fy all of the routine
declarations.  The resulting object code is exactly the same after
this update as before it, with the exception of one unavoidable
change to lpd.o on freebsd/alpha.

Also added $FreeBSD$ line to lpc/extern.h lpc/lpc.h lptest/lptest.c
(object for lptest.c changes due to the $FreeBSD$ line being added)

Reviewed by:	/sbin/md5, and freebsd-audit, freebsd-print

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Jun 16 00:14:02 2001 UTC (10 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines
Get rid of a trigraph ("??>") mistakenly put in an error message.
One less warning to annoy me...

MFC after:	1 week

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Jun 15 22:33:16 2001 UTC (10 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +1 -1 lines
Previous commit makes a minor change so socket-debug processing works the
same as it did before the IPv6 commit.  Probably irrelevent to freebsd,
but I think it was useful on other OS's.  Also makes a few minor style chgs.

Reviewed by:	freebsd-print@bostonradio.org
MFC after:	1 week

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Jun 15 22:30:02 2001 UTC (10 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +16 -20 lines
*** empty log message ***

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Jun 15 22:03:04 2001 UTC (10 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +20 -21 lines
Rename a few global variables which hold hostname-related values to be
more sensible/understandable.  'from'->'from_host'  'host'->'local_host'
'fromb'->'frombuf'  'fromhost'->'origin_host'  and a local-variable
named 'host'->'hostbuf'.  This fixes some compile-time warnings about
local variables shadowing global variables.

Other than renaming variables, the only actual code changes are to call
strlcpy() instead of strncpy() when setting those (renamed) variables,
and that 'from_ip' is now a strdup()-created buffer instead of being a
static buffer compiled in as 1025 bytes.

Reviewed by:	freebsd-print@bostonradio.org (an earlier version)
MFC after:	1 week

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Jun 15 16:28:35 2001 UTC (10 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
Rename global variable 'name' to 'progname', thus fixing a number of
warnings which come up for various routines that have a parameter which
is also called 'name'.

Reviewed by:	freebsd-print@bostonradio.org
MFC after:	1 week

Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Jun 12 16:38:18 2001 UTC (10 years, 8 months ago) by gad
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +20 -27 lines
Fix about 90-100 warnings one gets when trying to compile lpr&friends
with BDECFLAGS on, mainly by adding 'const' to parameters in a number
of routine declarations.  While I'm at it, ANSI-fy all of the routine
declarations.  The resulting object code is exactly the same after
this update as before it, with the exception of one unavoidable
change to lpd.o on freebsd/alpha.

Also added $FreeBSD$ line to lpc/extern.h lpc/lpc.h lptest/lptest.c

Reviewed by:	/sbin/md5, and no feedback from freebsd-audit

Revision 1.12.2.7: download - view: text, markup, annotated - select for diffs
Thu May 17 05:00:00 2001 UTC (10 years, 8 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.6: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.6: +16 -8 lines
[MFC from 2001/03/11]   -r 1.19
Change the usage() message to include the recently-added -4 and -6 options.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Mar 12 02:03:53 2001 UTC (10 years, 11 months ago) by gad
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +16 -8 lines
Change the usage() message to include the recently-added -4 and -6 options.

Revision 1.12.2.6: download - view: text, markup, annotated - select for diffs
Sun Feb 18 16:15:44 2001 UTC (10 years, 11 months ago) by ume
Branches: RELENG_4
CVS tags: RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3
Diff to: previous 1.12.2.5: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.5: +185 -62 lines
MFC: IPv6 support for lpr.

	usr.sbin/lpr/Makefile.inc:		1.5->1.6
	usr.sbin/lpr/common_source/lp.h:	1.13->1.14
	usr.sbin/lpr/common_source/net.c:	1.4->1.5
	usr.sbin/lpr/lpd/lpd.8:			1.16->1.17
	usr.sbin/lpr/lpd/lpd.c			1.17->1.18

Revision 1.12.2.5: download - view: text, markup, annotated - select for diffs
Tue Dec 26 22:01:41 2000 UTC (11 years, 1 month ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.4: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.4: +3 -1 lines
(MFC) Eliminate two compile-time warnings.       (1.17)

Revision 1.12.2.4: download - view: text, markup, annotated - select for diffs
Tue Dec 26 21:57:41 2000 UTC (11 years, 1 month ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.3: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.3: +18 -11 lines
(MFC) Fix the '-d' option (turns on socket-debugging).
      Improve some lpd-startup msgs.        (1.16)

PR:		17178
Submitted by:	Richard <satherrl@dssrg.curtin.edu.au>

Revision 1.12.2.3: download - view: text, markup, annotated - select for diffs
Tue Dec 26 21:54:40 2000 UTC (11 years, 1 month ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.2: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.2: +16 -3 lines
(MFC) Set SO_REUSEADDR so that lpd can restart while old lpd connections
      are still winding down (or timing out).  Also, be slightly more
      informative in mcleanup() about why lpd is exiting.
      Patch (in current since Sep 27th) done by GWollman.   (1.13)

PR:		21595

Revision 1.12.2.2: download - view: text, markup, annotated - select for diffs
Tue Dec 26 18:17:26 2000 UTC (11 years, 1 month ago) by gad
Branches: RELENG_4
Diff to: previous 1.12.2.1: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.1: +5 -4 lines
(MFC) Implement new printcap options of sr= and sr= in lpd,
      aka stat.recv and stat.send.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Dec 16 18:06:09 2000 UTC (11 years, 1 month ago) by ume
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +185 -62 lines
IPv6 support for lpr.

Reviewed by:	freebsd-current (no objection)
Obtained from:	KAME

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Nov 15 06:17:52 2000 UTC (11 years, 2 months ago) by gad
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -1 lines
Eliminate two compile-time warnings.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Nov 15 06:00:42 2000 UTC (11 years, 2 months ago) by gad
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +18 -11 lines
Fix the '-d' option (turns on socket-debugging).  Improve startup msgs.

PR:		17178
Submitted by:	Richard <satherrl@dssrg.curtin.edu.au>

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Nov 2 19:22:05 2000 UTC (11 years, 3 months ago) by gad
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +5 -4 lines
Implement new printcap options of sr= (aka stat.recv) and sr= (aka stat.send)
in lpd.  Stat.recv is useful on a printserver, as something of a network
performance-monitoring tool.  Stat.send is a minimal accounting record of
sorts for jobs going to tcp/ip based printers.

Reviewed by:	freebsd-print@bostonradio.org

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Sep 27 19:03:05 2000 UTC (11 years, 4 months ago) by wollman
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +16 -3 lines
Set SO_REUSEADDR so that lpd can start while old lpd connections are still
winding down (or timing out).  Also, be slightly more informative in
mcleanup() about why lpd is exiting.

PR:		21595

Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Mon Jul 3 06:25:02 2000 UTC (11 years, 7 months ago) by ps
Branches: RELENG_4
CVS tags: RELENG_4_2_0_RELEASE, RELENG_4_1_1_RELEASE, RELENG_4_1_0_RELEASE
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +26 -17 lines
MFC: Add -p option to prevent lpd(8) from opening a listening
socket.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Mar 29 11:15:54 2000 UTC (11 years, 10 months ago) by sheldonh
Branches: MAIN
CVS tags: PRE_SMPNG
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +26 -17 lines
Add -p option to prevent lpd(8) from opening a listening socket.

PR:		17384
Submitted by:	Niels Endres <niels@b5.nu>

Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Tue Jan 25 02:05:56 2000 UTC (12 years ago) by dillon
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE
Diff to: previous 1.10.2.1: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.1: +2 -2 lines
    MFC lpd.c 1.12, fix type-o.  The wrong buffer's last element was being
    zero.  A review of the code indicates that this bug had no effect on
    the program (no security issues), but should be fixed anyway.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Jan 25 01:51:21 2000 UTC (12 years ago) by dillon
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_0_0_RELEASE
Branch point for: RELENG_4
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
    Type-o, change from[...] = 0 to fromb[...] = 0.  The incorrect buffer
    was having its last element zero'd.  It turns out not to be a security
    hole or to have any real effect on the code because 'from' was previously
    pointing to a buffer of the same size as 'fromb', and the last
    element in fromb is already 0 anyway due to the use of sizeof(fromb)-1
    in the strncpy() call.  But I'm not pressing my luck so only the type-o
    is being fixed.

Revision 1.3.2.6: download - view: text, markup, annotated - select for diffs
Sun Sep 5 11:40:23 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_2_2
Diff to: previous 1.3.2.5: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.5: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 29 15:43:22 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_3
CVS tags: RELENG_3_4_0_RELEASE, RELENG_3_3_0_RELEASE
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Aug 28 01:16:52 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Sep 11 18:49:32 1998 UTC (13 years, 5 months ago) by wollman
Branches: MAIN
CVS tags: RELENG_3_BP, RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE, RELENG_3_1_0_RELEASE, RELENG_3_0_0_RELEASE
Branch point for: RELENG_3
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -1 lines
Fix additional warnings.  Remove -Werror, since some people have complained
about it.

PR:		7886
Submitted by:	Stefan Eggers <seggers@semyam.dinoco.de> (partially)

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Dec 2 20:45:54 1997 UTC (14 years, 2 months ago) by wollman
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +109 -91 lines
Mega lpd/lpd upgrade, part I:

- Get rid of a lot of the static variables which were shared by
  many routines and programs in the suite.
- Create an abstract interface to the printcap database, so that
  other retrieval and iteration mechanisms could be developed
  (e.g., YP, Hesiod, or automatic retrieval from a trusted server).
- Give each capability a human-readable name in addition to the historic
  two-character one.
- Otherwise generally clean up a lot of dark corners.  Many still remain.
- When submitting jobs, use the official login name record (from getlogin())
  if there is one, rather than reverse-mapping the uid.

More to come...

Revision 1.3.2.5: download - view: text, markup, annotated - select for diffs
Thu Sep 25 06:32:39 1997 UTC (14 years, 4 months ago) by charnier
Branches: RELENG_2_2
CVS tags: RELENG_2_2_8_RELEASE, RELENG_2_2_7_RELEASE, RELENG_2_2_6_RELEASE, RELENG_2_2_5_RELEASE
Diff to: previous 1.3.2.4: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.4: +8 -3 lines
MFC: Use err(3). Add usage(). Various fixes in man pages.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Sep 24 06:47:54 1997 UTC (14 years, 4 months ago) by charnier
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +8 -3 lines
Use err(3). Add usage(). Various fixes in man pages.

Revision 1.3.2.4: download - view: text, markup, annotated - select for diffs
Sat Aug 23 15:57:07 1997 UTC (14 years, 5 months ago) by joerg
Branches: RELENG_2_2
Diff to: previous 1.3.2.3: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.3: +46 -23 lines
MFC: staticize private version of warn() in displayq.c, user err() and
getopt(), add usage(), make specificatoin of port # possible.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Aug 23 15:53:00 1997 UTC (14 years, 5 months ago) by joerg
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +46 -23 lines
common_source: staticize private version of warn() so to not conflict
with libc's version.

lpd: use getopt(3), err(3), add usage(), allow specification of a port #
on the command line as the documentation suggested for more than 10 years.

PR:		docs/3290

Revision 1.3.2.3: download - view: text, markup, annotated - select for diffs
Thu Aug 14 23:10:21 1997 UTC (14 years, 5 months ago) by imp
Branches: RELENG_2_2
Diff to: previous 1.3.2.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.2: +11 -6 lines
Merge in the OpenBSD security changes from -current.  Any revs by
imp between 7/23 and 8/1 are included in this update.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Jul 23 00:49:28 1997 UTC (14 years, 6 months ago) by imp
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +11 -6 lines
Use setuid/seteuid around dangerous operations.  Also a few buffer
overflow patches that were "near" to where these operations are taking
place.  The buffer overflows are from OpenBSD.  The setuid/seteuid patches
are from NetBSD by way of OpenBSD (they changed them a little), at least from
my read of the tree.

This is the first of a series of OpenBSD lpr/et al merges.  It (and them)
should be merged back into 2.2 and/or 2.1 (if requested) branches when they
have been shaken out in -current.
Obtained from: OpenBSD

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Mon Jul 21 22:44:58 1997 UTC (14 years, 6 months ago) by brian
Branches: RELENG_2_2
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.1: +2 -1 lines
YAMFC: Output name of duplicate spool dir.
       Submitted by:   Wayne Scott <wscott@ichips.intel.com>

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Jul 21 22:40:04 1997 UTC (14 years, 6 months ago) by brian
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -1 lines
Output name of duplicate spool dir.
Submitted by:	Wayne Scott <wscott@ichips.intel.com>

Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Sat May 17 03:06:01 1997 UTC (14 years, 8 months ago) by brian
Branches: RELENG_2_2
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +30 -1 lines
YAMFC: Check for duplicate spool dirs.
2.2.2 candidate ?

Submitted by:	eivind

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat May 17 03:04:43 1997 UTC (14 years, 8 months ago) by brian
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +30 -1 lines
Check for duplicate spool dirs.

Submitted by:	eivind

Revision 1.1.1.1.6.1: download - view: text, markup, annotated - select for diffs
Fri Nov 1 04:57:09 1996 UTC (15 years, 3 months ago) by imp
Branches: RELENG_2_1_0
CVS tags: RELENG_2_1_7_RELEASE, RELENG_2_1_6_RELEASE, RELENG_2_1_6_1_RELEASE
Diff to: previous 1.1.1.1: preferred, colored; next MAIN 1.1.1.2: preferred, colored
Changes since revision 1.1.1.1: +24 -14 lines
Back port OpenBSD of 961025 merge in -current to -stable

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Oct 27 03:06:39 1996 UTC (15 years, 3 months ago) by imp
Branches: MAIN
CVS tags: RELENG_2_2_BP, RELENG_2_2_2_RELEASE, RELENG_2_2_1_RELEASE, RELENG_2_2_0_RELEASE
Branch point for: RELENG_2_2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +24 -14 lines
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

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu May 9 22:44:22 1996 UTC (15 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +37 -2 lines
Cleanup.

The removed files are no longer needed, they are actually labelled as
``Use only if you are not 4.4BSD''.  (Yeah, the ol' crufty printcap.c
is really gone!)

Properly declare all external objects in files ending in .h, as
opposed to embed them into files ending in .c.

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun May 5 14:04:18 1996 UTC (15 years, 9 months ago) by joerg
Branches: CSRG
CVS tags: bsd_44_lite_2
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +36 -1 lines
Vendor-branch import of the 4.4BSD-Lite2 code for lpr.  There are
several bugfixes in it that are worth considering.

Don't be alarmed about the import conflicts...

Obtained from: 4.4BSD-Lite2

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Thu May 26 05:21:53 1994 UTC (17 years, 8 months ago) by rgrimes
Branches: CSRG
CVS tags: bsd_44_lite, RELENG_2_1_5_RELEASE, RELENG_2_1_0_RELEASE, RELENG_2_1_0_BP, RELENG_2_0_5_RELEASE, RELENG_2_0_5_BP, RELENG_2_0_5_ALPHA, RELENG_2_0_5, RELEASE_2_0, BETA_2_0, ALPHA_2_0
Branch point for: RELENG_2_1_0
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
BSD 4.4 Lite usr.sbin Sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu May 26 05:21:52 1994 UTC (17 years, 8 months ago) by rgrimes
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options