diff options
| author | David Disseldorp <ddiss@samba.org> | 2013-09-26 13:24:15 +0200 |
|---|---|---|
| committer | Günther Deschner <gd@samba.org> | 2013-11-20 08:16:25 +0100 |
| commit | 956a4552f2c66cfe61493de772b5986d95511135 (patch) | |
| tree | 0a987e4e9e6e3cfdf0a535b7d9f3b197a0d0e31e /source3/include | |
| parent | 2d91577f984bc83c2c87141cfdda87d068060b32 (diff) | |
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>
Diffstat (limited to 'source3/include')
| -rw-r--r-- | source3/include/nt_printing.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/include/nt_printing.h b/source3/include/nt_printing.h index 2a0e8835df..4af44d75d9 100644 --- a/source3/include/nt_printing.h +++ b/source3/include/nt_printing.h @@ -128,9 +128,9 @@ bool nt_printing_init(struct messaging_context *msg_ctx); const char *get_short_archi(const char *long_archi); -bool print_access_check(const struct auth_session_info *server_info, - struct messaging_context *msg_ctx, int snum, - int access_type); +WERROR print_access_check(const struct auth_session_info *server_info, + struct messaging_context *msg_ctx, int snum, + int access_type); WERROR nt_printer_guid_get(TALLOC_CTX *mem_ctx, const struct auth_session_info *session_info, |
