1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00
freebsd/usr.sbin/lpr/lpc
Garance A Drosehn 004c9c5da2 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
2001-06-25 02:05:03 +00:00
..
cmds.c Make 'lpc clean' somewhat safer. Add an 'lpc tclean' command, which allows 2001-06-25 02:05:03 +00:00
cmdtab.c Make 'lpc clean' somewhat safer. Add an 'lpc tclean' command, which allows 2001-06-25 02:05:03 +00:00
extern.h Make 'lpc clean' somewhat safer. Add an 'lpc tclean' command, which allows 2001-06-25 02:05:03 +00:00
lpc.8 Make 'lpc clean' somewhat safer. Add an 'lpc tclean' command, which allows 2001-06-25 02:05:03 +00:00
lpc.c Make 'lpc clean' somewhat safer. Add an 'lpc tclean' command, which allows 2001-06-25 02:05:03 +00:00
lpc.h Make 'lpc clean' somewhat safer. Add an 'lpc tclean' command, which allows 2001-06-25 02:05:03 +00:00
Makefile - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00