summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-08-09 07:34:35 +0000
committerAndrew Tridgell <tridge@samba.org>2000-08-09 07:34:35 +0000
commitfadb15da71d6143e622f7fb669080c5b882df48f (patch)
treeeaf156366f3b483f69a005efb6ff0f9dea57b8e9 /source3
parent64f6dd86a89374ba6d72a71a003fe481040b6e02 (diff)
downloadsamba-fadb15da71d6143e622f7fb669080c5b882df48f.tar.gz
samba-fadb15da71d6143e622f7fb669080c5b882df48f.tar.bz2
samba-fadb15da71d6143e622f7fb669080c5b882df48f.zip
got error code right for printer update/add failure
(This used to be commit 0d00d2ec258b36d73e865f06d5d11745d7cdafa9)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index d6c39fa022..08abf4c301 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -3073,7 +3073,7 @@ static uint32 update_printer_sec(POLICY_HND *handle, uint32 level,
requires Full Access to the printer to change security
information. */
if (!print_access_check(&user, snum, PRINTER_ACE_FULL_CONTROL)) {
- result = NT_STATUS_ACCESS_DENIED;
+ result = ERROR_ACCESS_DENIED;
goto done;
}
@@ -3157,7 +3157,7 @@ static uint32 update_printer(POLICY_HND *handle, uint32 level,
if (!print_access_check(NULL, snum, PRINTER_ACE_FULL_CONTROL)) {
DEBUG(3, ("printer property change denied by security "
"descriptor\n"));
- result = NT_STATUS_ACCESS_DENIED;
+ result = ERROR_ACCESS_DENIED;
goto done;
}
@@ -4545,7 +4545,7 @@ uint32 _spoolss_setprinterdata( POLICY_HND *handle,
if (!print_access_check(NULL, snum, PRINTER_ACE_FULL_CONTROL)) {
DEBUG(3, ("security descriptor change denied by existing "
"security descriptor\n"));
- return NT_STATUS_ACCESS_DENIED;
+ return ERROR_ACCESS_DENIED;
}
status = get_a_printer(&printer, 2, lp_servicename(snum));