From owner-cvs-all Sun Jun 24 19: 5:14 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6EDB937B401; Sun, 24 Jun 2001 19:05:08 -0700 (PDT) (envelope-from gad@FreeBSD.org) Received: (from gad@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5P258K40373; Sun, 24 Jun 2001 19:05:08 -0700 (PDT) (envelope-from gad) Message-Id: <200106250205.f5P258K40373@freefall.freebsd.org> From: Garance A Drosehn Date: Sun, 24 Jun 2001 19:05:08 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/lpr/lpc cmds.c cmdtab.c extern.h lpc.8 lpc.c lpc.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG gad 2001/06/24 19:05:08 PDT Modified files: usr.sbin/lpr/lpc cmds.c cmdtab.c extern.h lpc.8 lpc.c lpc.h Log: 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 Changes Path 1.17 +286 -22 src/usr.sbin/lpr/lpc/cmds.c 1.4 +21 -17 src/usr.sbin/lpr/lpc/cmdtab.c 1.5 +7 -4 src/usr.sbin/lpr/lpc/extern.h 1.13 +25 -2 src/usr.sbin/lpr/lpc/lpc.8 1.19 +11 -3 src/usr.sbin/lpr/lpc/lpc.c 1.4 +7 -5 src/usr.sbin/lpr/lpc/lpc.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message