mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: Lift the smbd_messaging_context from print_queue_resume
This commit is contained in:
parent
5f9165a7ea
commit
9723f33ef5
@ -146,7 +146,8 @@ int print_queue_status(int snum,
|
||||
print_status_struct *status);
|
||||
WERROR print_queue_pause(struct auth_serversupplied_info *server_info,
|
||||
struct messaging_context *msg_ctx, int snum);
|
||||
WERROR print_queue_resume(struct auth_serversupplied_info *server_info, int snum);
|
||||
WERROR print_queue_resume(struct auth_serversupplied_info *server_info,
|
||||
struct messaging_context *msg_ctx, int snum);
|
||||
WERROR print_queue_purge(struct auth_serversupplied_info *server_info, int snum);
|
||||
|
||||
#endif /* PRINTING_H_ */
|
||||
|
@ -3071,12 +3071,13 @@ WERROR print_queue_pause(struct auth_serversupplied_info *server_info,
|
||||
Resume a queue.
|
||||
****************************************************************************/
|
||||
|
||||
WERROR print_queue_resume(struct auth_serversupplied_info *server_info, int snum)
|
||||
WERROR print_queue_resume(struct auth_serversupplied_info *server_info,
|
||||
struct messaging_context *msg_ctx, int snum)
|
||||
{
|
||||
int ret;
|
||||
struct printif *current_printif = get_printer_fns( snum );
|
||||
|
||||
if (!print_access_check(server_info, smbd_messaging_context(), snum,
|
||||
if (!print_access_check(server_info, msg_ctx, snum,
|
||||
PRINTER_ACCESS_ADMINISTER)) {
|
||||
return WERR_ACCESS_DENIED;
|
||||
}
|
||||
|
@ -5366,7 +5366,7 @@ static WERROR control_printer(struct policy_handle *handle, uint32_t command,
|
||||
break;
|
||||
case SPOOLSS_PRINTER_CONTROL_RESUME:
|
||||
case SPOOLSS_PRINTER_CONTROL_UNPAUSE:
|
||||
errcode = print_queue_resume(p->server_info, snum);
|
||||
errcode = print_queue_resume(p->server_info, p->msg_ctx, snum);
|
||||
break;
|
||||
case SPOOLSS_PRINTER_CONTROL_PURGE:
|
||||
errcode = print_queue_purge(p->server_info, snum);
|
||||
|
Loading…
Reference in New Issue
Block a user