diff options
author | Jeremy Allison <jra@samba.org> | 2002-09-04 23:40:49 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-09-04 23:40:49 +0000 |
commit | 2658e4ee23600e49a4231bc2b40c20a571c3f826 (patch) | |
tree | bc9bbec7ce10de6e2cd7a366ccc55f2769a1e2ac /source3/rpc_server | |
parent | cc5088b5f4174a7f44004746d3c7d395d51441ff (diff) | |
download | samba-2658e4ee23600e49a4231bc2b40c20a571c3f826.tar.gz samba-2658e4ee23600e49a4231bc2b40c20a571c3f826.tar.bz2 samba-2658e4ee23600e49a4231bc2b40c20a571c3f826.zip |
Added better error code on out of space. Removed total jobs check - not
applicable any more.
Jeremy.
(This used to be commit 8828e2ea3c668aab6cda1b4be9a7e4ce1c23ca81)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index a20fa615fd..0236057475 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -5159,6 +5159,13 @@ WERROR _spoolss_writeprinter(pipes_struct *p, SPOOL_Q_WRITEPRINTER *q_u, SPOOL_R return WERR_BADFID; (*buffer_written) = print_job_write(snum, Printer->jobid, (char *)buffer, buffer_size); + if (*buffer_written == -1) { + r_u->buffer_written = 0; + if (errno == ENOSPC) + return WERR_NO_SPOOL_SPACE; + else + return WERR_ACCESS_DENIED; + } r_u->buffer_written = q_u->buffer_size2; |