summaryrefslogtreecommitdiff
path: root/source3/printing/printing.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-08-10 05:41:53 +0000
committerTim Potter <tpot@samba.org>2001-08-10 05:41:53 +0000
commit047a7c88d7d004f1581f585dd31caea388ab6f0d (patch)
treefbf0f8b759fe56348d89069ea88290d367f49158 /source3/printing/printing.c
parent7d9358cf58d407623c0b7c6164976a33bbbbff64 (diff)
downloadsamba-047a7c88d7d004f1581f585dd31caea388ab6f0d.tar.gz
samba-047a7c88d7d004f1581f585dd31caea388ab6f0d.tar.bz2
samba-047a7c88d7d004f1581f585dd31caea388ab6f0d.zip
Replaced the duplicate DOS constants with appropriate ones from doserr.h to
emphasise the fact that the spoolss pipe returns DOS error codes instead of 32-bit nt status codes. (This used to be commit 5f5ed41ee872d842e944cd2e84a80de714ad4385)
Diffstat (limited to 'source3/printing/printing.c')
-rw-r--r--source3/printing/printing.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index fdb9018ede..17bea61f86 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -617,7 +617,7 @@ BOOL print_job_delete(struct current_user *user, int jobid, int *errcode)
if (!owner &&
!print_access_check(user, snum, JOB_ACCESS_ADMINISTER)) {
DEBUG(3, ("delete denied by security descriptor\n"));
- *errcode = ERROR_ACCESS_DENIED;
+ *errcode = ERRnoaccess;
return False;
}
@@ -656,7 +656,7 @@ BOOL print_job_pause(struct current_user *user, int jobid, int *errcode)
if (!is_owner(user, jobid) &&
!print_access_check(user, snum, JOB_ACCESS_ADMINISTER)) {
DEBUG(3, ("pause denied by security descriptor\n"));
- *errcode = ERROR_ACCESS_DENIED;
+ *errcode = ERRnoaccess;
return False;
}
@@ -664,7 +664,7 @@ BOOL print_job_pause(struct current_user *user, int jobid, int *errcode)
ret = (*(current_printif->job_pause))(snum, pjob);
if (ret != 0) {
- *errcode = ERROR_INVALID_PARAMETER;
+ *errcode = ERRinvalidparam;
return False;
}
@@ -700,14 +700,14 @@ BOOL print_job_resume(struct current_user *user, int jobid, int *errcode)
if (!is_owner(user, jobid) &&
!print_access_check(user, snum, JOB_ACCESS_ADMINISTER)) {
DEBUG(3, ("resume denied by security descriptor\n"));
- *errcode = ERROR_ACCESS_DENIED;
+ *errcode = ERRnoaccess;
return False;
}
ret = (*(current_printif->job_resume))(snum, pjob);
if (ret != 0) {
- *errcode = ERROR_INVALID_PARAMETER;
+ *errcode = ERRinvalidparam;
return False;
}
@@ -1190,14 +1190,14 @@ BOOL print_queue_pause(struct current_user *user, int snum, int *errcode)
int ret;
if (!print_access_check(user, snum, PRINTER_ACCESS_ADMINISTER)) {
- *errcode = ERROR_ACCESS_DENIED;
+ *errcode = ERRnoaccess;
return False;
}
ret = (*(current_printif->queue_pause))(snum);
if (ret != 0) {
- *errcode = ERROR_INVALID_PARAMETER;
+ *errcode = ERRinvalidparam;
return False;
}
@@ -1222,14 +1222,14 @@ BOOL print_queue_resume(struct current_user *user, int snum, int *errcode)
int ret;
if (!print_access_check(user, snum, PRINTER_ACCESS_ADMINISTER)) {
- *errcode = ERROR_ACCESS_DENIED;
+ *errcode = ERRnoaccess;
return False;
}
ret = (*(current_printif->queue_resume))(snum);
if (ret != 0) {
- *errcode = ERROR_INVALID_PARAMETER;
+ *errcode = ERRinvalidparam;
return False;
}