CVS log for src/usr.sbin/lpr/lpc/cmds.c
Up to [FreeBSD] / src / usr.sbin / lpr / lpc
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Dec 30 10:58:14 2011 UTC (5 weeks, 6 days ago) by uqs
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -4 lines
SVN rev 228990 on 2011-12-30 10:58:14Z by uqs Spelling fixes for usr.sbin/
Revision 1.33.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.33.2.1: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.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.33.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.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +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.32.36.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.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +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.32.32.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.32.32.1: preferred, colored; next MAIN 1.32.34.1: preferred, colored
Changes since revision 1.32.32.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.33: 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
Branch point for: RELENG_9
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +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.32.32.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.32.32.1: preferred, colored; next MAIN 1.32.34.1: preferred, colored
Changes since revision 1.32.32.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.32.34.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.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +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.32.32.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.32.32.1: preferred, colored; next MAIN 1.32.34.1: preferred, colored
Changes since revision 1.32.32.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.32.32.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.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +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.32.30.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.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +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.32.28.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.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +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.32.26.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.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +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.14.2.17: download - view: text, markup, annotated - select for diffs
Thu Jul 31 00:43:09 2003 UTC (8 years, 6 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.14.2.16: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.2.16: +5 -4 lines
MFC: all lpr/lpc/* changes to use __FBSDID(), and to fix 'sccsid' lines to consistently match style(9) guidelines.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Jul 14 22:24:28 2003 UTC (8 years, 6 months ago) by gad
Branches: MAIN
CVS tags: RELENG_8_BP, 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, RELENG_5_BP, RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5, 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, RELENG_5
Branch point for: RELENG_8, RELENG_7_4, RELENG_7_3, RELENG_7_2, RELENG_7_1, RELENG_6_4
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -4 lines
More changes to use __FBSDID() for setting rcsids, and fix the format of 'sccsid' lines so they consistently match style(9) guidelines. Note that this means you will have to add '-a' to the 'strings' command when searching for rcs ids, eg: strings -a /usr/sbin/lpc | grep '$FreeBSD' Reviewed by: discussed on cvs-src & with bde and obrien MFC after: 15 days
Revision 1.14.2.16: download - view: text, markup, annotated - select for diffs
Thu Jul 25 23:29:39 2002 UTC (9 years, 6 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.14.2.15: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.15: +0 -361 lines
MFC *: Remove the backup-versions ("x*") of various lpc commands that were
recently rewritten. No problems have been reported with the new versions.
[* = 1.30 cmds.c, 1.9 cmdtab.c, 1.10 extern.h]
Revision 1.14.2.15: download - view: text, markup, annotated - select for diffs
Mon Jul 15 00:01:44 2002 UTC (9 years, 6 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.14.2.14: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.14: +1 -0 lines
MFC 1.31: Call the routine which frees everything obtained when filling in 'struct printer', thus avoiding a small memory leak in lpc.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Jul 12 01:53:36 2002 UTC (9 years, 7 months ago) by gad
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.30: preferred, colored
Changes since revision 1.30: +1 -0 lines
Call routine to free everything obtained when filling in 'struct printer'. MFC after: 3 days
Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Jul 2 02:48:21 2002 UTC (9 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +0 -361 lines
Remove the backup-versions ("x*") of various lpc commands that were
recently rewritten. No one in -current has reported any problems with
the newer versions.
MFC after: 3 weeks
Revision 1.14.2.14: download - view: text, markup, annotated - select for diffs
Tue Jun 25 23:11:18 2002 UTC (9 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.14.2.13: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.13: +3 -3 lines
MFC *: Just rename two generic-queue init routines from 'init_*' to '*_gi'. [* = 1.29 cmds.c, 1.8 cmdtab.c, 1.9 extern.h]
Revision 1.14.2.13: download - view: text, markup, annotated - select for diffs
Tue Jun 25 23:08:36 2002 UTC (9 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.14.2.12: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.12: +63 -1 lines
MFC *: Add a nearly complete rewrite of the lpc command 'down'. The only user-visible change should be that more than one queue can now be specified, if one uses the '-msg' parameter to separate the list of queues from the status message to set. The previous implementation of 'down' remains available as the command 'xdown', available for instant fallback if there seems to be anything wrong with the new one. If no one reports a problem after a few weeks, then a later update will remove 'xdown'.
Revision 1.14.2.12: download - view: text, markup, annotated - select for diffs
Tue Jun 25 22:57:04 2002 UTC (9 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.14.2.11: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.11: +24 -20 lines
MFC 1.27: Reorganize the way that arguments are processed in lpc's generic-queue commands, to make things a little cleaner (mainly for a later update).
Revision 1.14.2.11: download - view: text, markup, annotated - select for diffs
Tue Jun 25 22:55:07 2002 UTC (9 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.14.2.10: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.10: +102 -19 lines
MFC *: Add a new command to 'lpc' called 'setstatus', which would be used to change the status message of a print queue. [* = 1.26 cmds.c, 1.6 cmdtab.c, 1.7 extern.h, 1.16 lpc.8, 1.25 lpc.c, 1.5 lpc.h]
Revision 1.14.2.10: download - view: text, markup, annotated - select for diffs
Sat Jun 22 22:11:34 2002 UTC (9 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.14.2.9: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.9: +278 -0 lines
MFC *: Almost complete rewrite of the lpc commands 'abort', 'enable', 'disable', 'restart', 'start', 'stop' and 'up'. This reduces the amount of code that is run as the priv userid, and eliminates some cases where error messages were written while that priv uid was in effect. As far as users are concerned, there should be no noticable difference in the new versions. In case there *is*, the previous implementations are still there as 'xabort', 'xenable', etc, so they are available for instant fallback. If no one reports a problem after a few weeks, then a later update will remove those x-commands. [* = 1.26->1.28 common.c, 1.21 lp.h, 1.25 cmds.c, 1.5 cmdtab.c, 1.6 extern.h]
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Jun 16 01:51:37 2002 UTC (9 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
Just rename two generic-queue init routines from 'init_*' to '*_gi'
("gi" short for 'generic init'...).
MFC after: 10 days
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Jun 16 01:43:29 2002 UTC (9 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +63 -1 lines
Add a nearly complete rewrite of the lpc command 'down'. The only user- visible change should be that more than one queue can now be specified, if one uses the '-msg' parameter to separate the list of queues from the status message to set. The previous implementation of 'down' remains available as the command 'xdown', available for instant fallback if there seems to be anything wrong with the new one. If no one reports a problem after a few weeks, then a later update will remove 'xdown'. Reviewed by: freebsd-print@bostonradio.org MFC after: 10 days
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Jun 15 23:31:27 2002 UTC (9 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +24 -20 lines
Reorganize the way that arguments are processed in lpc's generic-queue commands, to make things a little cleaner (mainly for a later update). Reviewed by: freebsd-print@bostonradio.org MFC after: 10 days
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Jun 15 22:51:58 2002 UTC (9 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +102 -19 lines
Add a new command to 'lpc' called 'setstatus', which would be used to change the status message of a print queue. This includes some minor changes to the upstat() routine, so that error messages are not printed while seteuid(priv-user). Reviewed by: freebsd-audit and freebsd-print@bostonradio.org MFC after: 10 days
Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Jun 13 01:55:48 2002 UTC (9 years, 8 months ago) by gad
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +278 -0 lines
Almost complete rewrite of the lpc commands 'abort', 'enable', 'disable', 'restart', 'start', 'stop' and 'up'. These are commands which mainly just alter the access bits on the lock-file of a queue, and they all now use a central routine to do that. This reduces the amount of code that is run as the priv userid, and eliminates a number of cases where error messages were written while that priv uid was in effect. As far as users are concerned, there should be no noticable difference in the new versions. In case there *is*, the previous implementations are still there as 'xabort', 'xenable', etc, so they are available for instant fallback. If no one reports a problem after a few weeks, then a later update will remove those x-commands. Reviewed by: freebsd-audit and freebsd-print@bostonradio.org MFC after: 10 days
Revision 1.14.2.9: download - view: text, markup, annotated - select for diffs
Fri Apr 26 18:18:39 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.14.2.8: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.8: +2 -2 lines
MFC 1.24: Add 'const' to some casts to fix two warnings that are printed by the new gcc (on sparc64).
Revision 1.14.2.8: download - view: text, markup, annotated - select for diffs
Thu Apr 25 21:53:20 2002 UTC (9 years, 9 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.14.2.7: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.7: +3 -3 lines
MFC 1.23: Usage style sweep: spell "usage" with a small 'u', for all the sub-commands in 'lpc'. [done by des]
Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Apr 22 23:28:42 2002 UTC (9 years, 9 months ago) by gad
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
Add 'const' to some casts to fix two warnings that are printed by the new gcc (on sparc64). MFC after: 4 days
Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Apr 22 13:44:44 2002 UTC (9 years, 9 months ago) by des
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3 lines
Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
Revision 1.14.2.7: download - view: text, markup, annotated - select for diffs
Tue Dec 11 04:21:06 2001 UTC (10 years, 2 months ago) by gad
Branches: RELENG_4
CVS tags: RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5
Diff to: previous 1.14.2.6: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.6: +22 -13 lines
MFC *: My recent changes to add the ctl_renametf routine assumed that print job control-files will always start with 'cfA*'. It turned out that some implementations may send a control file which starts with 'cf<anyLetter>*'. This changes ctl_renametf to work correctly with them, and fixes up 'lpc clean' to match. [* = 1.4 ctlinfo.c, 1.22 cmds.c] PR: bin/32183
Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Nov 28 04:30:47 2001 UTC (10 years, 2 months ago) by gad
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +23 -14 lines
My recent changes to add the ctl_renametf routine assumed that print job control-files will always start with 'cfA*'. It turns out that some implementations of lpd (such as solaris) may send a control file which starts with 'cfB*', or really 'cf<anyLetter>*'. Although such filenames are very odd, we did used to accept them. This changes ctl_renametf to work correctly with them, and fixes up 'lpc clean' to match. PR: bin/32183 MFC after: 10 days
Revision 1.14.2.6: download - view: text, markup, annotated - select for diffs
Sat Oct 13 18:51:20 2001 UTC (10 years, 3 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.14.2.5: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.5: +127 -20 lines
MFC 1.20->1.21: Basically rewrite the sortq() routine which is used by 'lpc clean' and 'lpc tclean'. This removes some invalid assumptions which could (in rare cases) case valid user jobs to be removed.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Oct 9 00:04:59 2001 UTC (10 years, 4 months ago) by gad
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -1 lines
Fix minor compile-time warning that snunk in with changes to sortq() rtn. MFC after: 4 days
Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Sep 27 17:16:53 2001 UTC (10 years, 4 months ago) by gad
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +126 -20 lines
Basically rewrite the sortq() routine which is used by 'lpc clean' and 'lpc tclean'. In some obscure cases, the previous version could cause a valid user job to be removed (by 'clean'), due to invalid assumptions in the sort routine. This was a rare problem, unless ctlinfo.c is compiled with 'LEAVE_TMPCF_FILES' turned on (to check what that rtn was doing). Reviewed by: Lack of outcry on -audit and freebsd-print@bostonradio.org MFC after: 10 days
Revision 1.14.2.5: download - view: text, markup, annotated - select for diffs
Sun Jul 29 23:19:28 2001 UTC (10 years, 6 months ago) by gad
Branches: RELENG_4
CVS tags: RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4
Diff to: previous 1.14.2.4: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.4: +2 -2 lines
MFC 1.19: Get rid of a compile-time warning by casting to (size_t).
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jul 23 01:19:59 2001 UTC (10 years, 6 months ago) by gad
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
Get rid of a compile-time warning by casting to (size_t). MFC after: 1 week
Revision 1.14.2.4: download - view: text, markup, annotated - select for diffs
Sun Jul 22 02:51:52 2001 UTC (10 years, 6 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.14.2.3: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.3: +6 -6 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.18: 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.17: preferred, colored
Changes since revision 1.17: +6 -6 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.14.2.3: download - view: text, markup, annotated - select for diffs
Wed Jul 11 23:44:47 2001 UTC (10 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.14.2.2: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.2: +286 -22 lines
...[MFC] Make 'lpc clean' somewhat safer, and have it look for 'core' files in spool directories. Also add the 'lpc tclean' command, which shows what a 'lpc clean' command would do without removing any files. Also adds a summary line to 'lpc clean' and 'lpc tclean'. [1.17 cmds.c, 1.4 cmdtab.c, 1.5 extern.h, 1.13 lpc.8, 1.19 lpc.c, 1.4 lpc.h]
Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Jun 25 02:05:03 2001 UTC (10 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +286 -22 lines
Make 'lpc clean' somewhat safer. Add an 'lpc tclean' command, which allows one to see what files would be removed *if* an 'lpc clean' is done. 'tclean' will remove no files, and is therefore not a privileged command. Also, both 'lpc clean' and 'lpc tclean' will now look for 'core' files in spool directories (but not remove them). They also print out an extra line of info when a datafile to be removed is a symlink (from 'lpr -s'), saying what file it is a symlink to. The 'lpc clean' commands also now print out a summary line saying how many queues were checked, how many files were removed (or "would be" removed, for tclean), and how much disk space is involved. For the benefit of those who have many print queues, 'lpc clean all' will only print out the names of print queues where some "interesting" files were found, instead of printing out a header-line for every queue in your printcap file. Reviewed by: freebsd-print@bostonradio.org freebsd-audit@FreeBSD.org MFC after: 2 weeks
Revision 1.14.2.2: 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.14.2.1: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.1: +66 -98 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.16: download - view: text, markup, annotated - select for diffs
Tue Jun 12 16:38:17 2001 UTC (10 years, 8 months ago) by gad
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +66 -98 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.14.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 26 18:58:41 2000 UTC (11 years, 1 month ago) by gad
Branches: RELENG_4
CVS tags: RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +11 -11 lines
(MFC) Change a structure name to something "less generic".
'struct queue { q_time, q_name }' becomes
'struct jobqueue { job_time, job_cfname }' (so to speak)
Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Nov 6 19:36:38 2000 UTC (11 years, 3 months ago) by gad
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +11 -11 lines
Cosmetic change of a structure name.
Turn 'struct queue { q_time, q_name }' (loosely-speaking)
into 'struct jobqueue { job_time, job_cfname }'
Reviewed by: GAWollman
Revision 1.12.2.2: download - view: text, markup, annotated - select for diffs
Mon Jan 24 23:35:10 2000 UTC (12 years ago) by dillon
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE
Diff to: previous 1.12.2.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.1: +5 -4 lines
MFC cmds.c 1.14 - fix 'start' command.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Jan 24 23:30:38 2000 UTC (12 years ago) by dillon
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_2_0_RELEASE, RELENG_4_1_1_RELEASE, RELENG_4_1_0_RELEASE, RELENG_4_0_0_RELEASE, PRE_SMPNG
Branch point for: RELENG_4
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +5 -4 lines
'start' command was not reenabling printing.
PR: bin/15728
Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 29 15:43:18 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.12: preferred, colored
Changes since revision 1.12: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Aug 28 01:16:51 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Sep 11 18:49:31 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.11: preferred, colored
Changes since revision 1.11: +1 -3 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.11: download - view: text, markup, annotated - select for diffs
Tue Dec 2 20:45:37 1997 UTC (14 years, 2 months ago) by wollman
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +246 -514 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.4.2.3: download - view: text, markup, annotated - select for diffs
Thu Aug 14 23:10:17 1997 UTC (14 years, 5 months ago) by imp
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.4.2.2: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.2: +86 -40 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.10: download - view: text, markup, annotated - select for diffs
Tue Jul 29 13:23:53 1997 UTC (14 years, 6 months ago) by imp
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +1 -1 lines
Two minor, pedantic fixes from bde for my last pedantic fixes, plus the following from recent OpenBSD changes. These changes (and all I've made) should be merged back into 2.2 when they are vetted in -current. common.c: OpenBSD 1.7: mickey: #if __STDC__ --> #ifdef __STDC__ displayq.c: OpenBSD 1.8: deraadt: 1 byte oflows; millert rmjob.c: OpenBSD 1.8: deraadt: 1 byte oflows; millert cmds.c: OpenBSD 1.9: grr: restore traditional "all" keyword option - see lpc(8) [[ This makes lpc status all work again -- imp ]] printjob.c: OpenBSD 1.17: deraadt: use sendmail -t OpenBSD 1.16: mickey: #if __STDC__ --> #ifdef __STDC__ OpenBSD 1.15: deraadt: 1 byte oflow; Don.Lewis@tsc.tdk.com recvjob.c: OpenBSD 1.11: mickey: #if __STDC__ --> #ifdef __STDC__ lpr.c: OpenBSD 1.19: mickey: #if __STDC__ --> #ifdef __STDC__ Obtained from: OpenBSD
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Jul 29 04:17:09 1997 UTC (14 years, 6 months ago) by imp
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +25 -16 lines
Fix boatloads of buffer overflows from the OpenBSD tree. Be pedantic about always using sizeof(blah) vs sizeof (blah) or sizeof blah. Obtained from:OpenBSD
Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jul 23 20:53:26 1997 UTC (14 years, 6 months ago) by imp
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -1 lines
index -> strchr and rindex -> strrchr to reduce the number of gratuitous diffes with NetBSD/OpenBSD. These changes seem to predate the NetBSD/OpenBSD split, so it is hard to give proper credit for them. Obtained from: OpenBSD.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Jul 23 00:49:21 1997 UTC (14 years, 6 months ago) by imp
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +59 -22 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.4.2.2: download - view: text, markup, annotated - select for diffs
Tue May 13 20:54:08 1997 UTC (14 years, 9 months ago) by brian
Branches: RELENG_2_2
CVS tags: RELENG_2_2_2_RELEASE
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.2.1: +7 -3 lines
YAMFC: Don't output extraneous tab Submitted by: Garance A Drosehn <gad@eclipse.its.rpi.edu>
Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue May 13 20:52:31 1997 UTC (14 years, 9 months ago) by brian
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +7 -3 lines
Don't output extraneous tab Submitted by: Garance A Drosehn <gad@eclipse.its.rpi.edu>
Revision 1.2.4.2: download - view: text, markup, annotated - select for diffs
Sun Feb 9 05:05:43 1997 UTC (15 years ago) by imp
Branches: RELENG_2_1_0
CVS tags: RELENG_2_1_7_RELEASE
Diff to: previous 1.2.4.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.4.1: +4 -2 lines
Merge buffer oflow from -current (rev 1.4)
Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Sun Feb 9 05:05:14 1997 UTC (15 years ago) by imp
Branches: RELENG_2_2
CVS tags: RELENG_2_2_1_RELEASE, RELENG_2_2_0_RELEASE
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -2 lines
Merge buffer oflow from -current (rev 1.4)
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Feb 9 05:04:17 1997 UTC (15 years ago) by imp
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -2 lines
Buffer overflow from OpenBSD: Rev 1.7 millert: possible oflow Obtained from: OpenBSD
Revision 1.2.4.1: download - view: text, markup, annotated - select for diffs
Fri Nov 1 04:56:57 1996 UTC (15 years, 3 months ago) by imp
Branches: RELENG_2_1_0
CVS tags: RELENG_2_1_6_RELEASE, RELENG_2_1_6_1_RELEASE
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -4 lines
Back port OpenBSD of 961025 merge in -current to -stable
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Oct 27 03:06:21 1996 UTC (15 years, 3 months ago) by imp
Branches: MAIN
CVS tags: RELENG_2_2_BP
Branch point for: RELENG_2_2
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4 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.3: download - view: text, markup, annotated - select for diffs
Sun May 5 22:40:44 1996 UTC (15 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -1 lines
Pull a bunch of fixes from the 4.4BSD-Lite2 branch. It's really surprising how many trivial errors there have been... :-) Some more cleanup is needed, but i'd like to separate the Lite2 changes from other work, that's why this goes into a different commit. People with serial printers should see whether i have broken the stty- style printcap options (i hope not). Inspired by: Sergey Shkonda <serg@bcs1.bcs.zaporizhzhe.ua>
Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun May 5 14:04:10 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: +2 -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.2: download - view: text, markup, annotated - select for diffs
Tue May 30 03:47:58 1995 UTC (16 years, 8 months ago) by rgrimes
Branches: MAIN
CVS tags: 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
Branch point for: RELENG_2_1_0
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -4 lines
Remove trailing whitespace.
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Thu May 26 05:21:56 1994 UTC (17 years, 8 months ago) by rgrimes
Branches: CSRG
CVS tags: bsd_44_lite, RELENG_2_0_5_ALPHA, RELEASE_2_0, BETA_2_0, ALPHA_2_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:55 1994 UTC (17 years, 8 months ago) by rgrimes
Branches: MAIN
Initial revision
