r5691: wrapping the pause/resume/purge printer commands in
commitf9a4f329ec3afd584071373b2889347bf097c731
authorGerald Carter <jerry@samba.org>
Tue, 8 Mar 2005 17:22:39 +0000 (8 17:22 +0000)
committerGerald Carter <jerry@samba.org>
Tue, 8 Mar 2005 17:22:39 +0000 (8 17:22 +0000)
treef6452f13640fa590c0d0062f02802f5a474e0983
parent8ea0c293d33b8a16f96cb314b466cd0cf0c0f61d
r5691: wrapping the pause/resume/purge printer commands in
{become,unbecome}_root() blocks.  We've already done
a print_access_check() to ensure the user is admin.
The means that non-root users can pause and manage printers.
I really don't see how this worked before without setuid
binaries on the server.

Also update print_queue_update() interface to allow an smbd
to update the print queue cache locally rather than going through
the bg lpq daemon.  This is needed for things like pjob_delete()
to ensure the cache is current for the specific client.
source/printing/printing.c