Date: Sun, 9 Jun 2002 21:33:01 -0400 From: Garance A Drosihn <drosih@rpi.edu> To: freebsd-audit@FreeBSD.ORG Cc: freebsd-print@bostonradio.org Subject: Re: Rewrite of much of lpc/cmds.c ... Message-ID: <p05111736b929afa31b76@[128.113.24.47]> In-Reply-To: <p05111731b928291892ef@[128.113.24.47]> References: <p05111731b928291892ef@[128.113.24.47]>
next in thread | previous in thread | raw e-mail | index | archive | help
At 5:52 PM -0400 6/8/02, Garance A Drosihn wrote:
>I figure I better stop at this point, before I rewrite the
>entire thing. Here is an update which basically rewrites
>
> abort disable enable restart
> start stop up
>I would like to commit this to current around June 15th.
Actually, since this update will leave the previous versions of
all the commands available, I'll probably commit it to current
by Wednesday the 12th. I do have additional updates to
lpc/cmds.c which will be available by the weekend. (they're
already written, actually, but I'm still checking them over).
>Here is the update:
>Index: lpc/cmds.c
>===================================================================
> /*
>+ * kill an existing daemon and disable printing.
>+ */
>+void
>+abort_q(struct printer *pp)
>+{
I am still making a few cosmetic changes to this update (such as
rewording some comments), and in the process I did notice that
the abort_q routine needs a:
if (setres >= 0) {
seteuid(euid);
upstat(pp, "printing disabled\n");
seteuid(uid);
}
at the end of the routine, to completely reproduce the behavior
of the previous implementation of abortpr. So, I've added it...
--
Garance Alistair Drosehn = gad@gilead.netel.rpi.edu
Senior Systems Programmer or gad@freebsd.org
Rensselaer Polytechnic Institute or drosih@rpi.edu
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05111736b929afa31b76>
