r5691: wrapping the pause/resume/purge printer commands in
authorGerald Carter <jerry@samba.org>
Tue, 8 Mar 2005 17:22:39 +0000 (17:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:55:55 +0000 (10:55 -0500)
commitad4fe018c2c6c6a57ea8a57911846afdc6c71bed
tree8a2af79477e32bc746b0f3e4cc1965d63d722587
parent90dfded4df4afca142a36d3b6dd7f668ba4eba81
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.
(This used to be commit f75369ec865f4ba1ae8201ae750c0f45158ed536)
source3/printing/printing.c