From owner-cvs-all Wed Jun 12 18:55:54 2002 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 1815A37B404; Wed, 12 Jun 2002 18:55:49 -0700 (PDT) Received: (from gad@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5D1tnE64930; Wed, 12 Jun 2002 18:55:49 -0700 (PDT) (envelope-from gad) Message-Id: <200206130155.g5D1tnE64930@freefall.freebsd.org> From: Garance A Drosehn Date: Wed, 12 Jun 2002 18:55:48 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/lpr/common_source common.c lp.h src/usr.sbin/lpr/lpc cmds.c cmdtab.c extern.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 2002/06/12 18:55:48 PDT Modified files: usr.sbin/lpr/common_source common.c lp.h usr.sbin/lpr/lpc cmds.c cmdtab.c extern.h Log: 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 Changes Path 1.26 +133 -0 src/usr.sbin/lpr/common_source/common.c 1.21 +18 -0 src/usr.sbin/lpr/common_source/lp.h 1.25 +278 -0 src/usr.sbin/lpr/lpc/cmds.c 1.5 +15 -8 src/usr.sbin/lpr/lpc/cmdtab.c 1.6 +15 -8 src/usr.sbin/lpr/lpc/extern.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message