printing: return WERROR from print_access_check
authorDavid Disseldorp <ddiss@samba.org>
Thu, 26 Sep 2013 11:24:15 +0000 (13:24 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 20 Nov 2013 07:16:25 +0000 (08:16 +0100)
commit956a4552f2c66cfe61493de772b5986d95511135
tree0a987e4e9e6e3cfdf0a535b7d9f3b197a0d0e31e
parent2d91577f984bc83c2c87141cfdda87d068060b32
printing: return WERROR from print_access_check

print_access_check() currently returns a bool based on whether access is
granted or denied. Errno is set on failure, but none of the callers use
it.
This change converts print_access_check() to return a WERROR.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/include/nt_printing.h
source3/printing/nt_printing.c
source3/printing/printing.c
source3/rpc_server/spoolss/srv_spoolss_nt.c