summaryrefslogtreecommitdiffstats
path: root/source/libsmb
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-01-03 02:36:08 +0000
committerTim Potter <tpot@samba.org>2002-01-03 02:36:08 +0000
commit6c950db05a2772f11b20cc13c65a123ea8b878c2 (patch)
treed106225a8a9c52d604a952f36e8bbd898b335b77 /source/libsmb
parentab1bd916cf59e12366d9005f6ce1cf6521ff02be (diff)
downloadsamba-6c950db05a2772f11b20cc13c65a123ea8b878c2.tar.gz
samba-6c950db05a2772f11b20cc13c65a123ea8b878c2.tar.xz
samba-6c950db05a2772f11b20cc13c65a123ea8b878c2.zip
The werror<->nt status code map has changed and has broken all the spoolss
commands in rpcclient. Replacing ERROR_INSUFFICIENT_BUFFER with NT_STATUS_BUFFER_TOO_SMALL fixes it. Yay! I always thought the caller (i.e cmd_spoolss.c) should take care of the whole requested/needed buffer size thingy though...
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/cli_spoolss.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/libsmb/cli_spoolss.c b/source/libsmb/cli_spoolss.c
index c87a36e3024..6b1a5ff249e 100644
--- a/source/libsmb/cli_spoolss.c
+++ b/source/libsmb/cli_spoolss.c
@@ -460,7 +460,7 @@ NTSTATUS cli_spoolss_enum_printers(
prs_mem_free(&qbuf);
prs_mem_free(&rbuf);
- } while (NT_STATUS_V(result) == NT_STATUS_V(ERROR_INSUFFICIENT_BUFFER));
+ } while (NT_STATUS_V(result) == NT_STATUS_V(NT_STATUS_BUFFER_TOO_SMALL));
return result;
}
@@ -535,7 +535,7 @@ NTSTATUS cli_spoolss_enum_ports(
prs_mem_free(&qbuf);
prs_mem_free(&rbuf);
- } while (NT_STATUS_V(result) == NT_STATUS_V(ERROR_INSUFFICIENT_BUFFER));
+ } while (NT_STATUS_V(result) == NT_STATUS_V(NT_STATUS_BUFFER_TOO_SMALL));
return result;
}
@@ -605,7 +605,7 @@ NTSTATUS cli_spoolss_getprinter(
prs_mem_free(&qbuf);
prs_mem_free(&rbuf);
- } while (NT_STATUS_V(result) == NT_STATUS_V(ERROR_INSUFFICIENT_BUFFER));
+ } while (NT_STATUS_V(result) == NT_STATUS_V(NT_STATUS_BUFFER_TOO_SMALL));
return result;
}
@@ -735,7 +735,7 @@ NTSTATUS cli_spoolss_getprinterdriver (
prs_mem_free(&qbuf);
prs_mem_free(&rbuf);
- } while (NT_STATUS_V(result) == NT_STATUS_V(ERROR_INSUFFICIENT_BUFFER));
+ } while (NT_STATUS_V(result) == NT_STATUS_V(NT_STATUS_BUFFER_TOO_SMALL));
return result;
}
@@ -817,7 +817,7 @@ NTSTATUS cli_spoolss_enumprinterdrivers (
prs_mem_free(&qbuf);
prs_mem_free(&rbuf);
- } while (NT_STATUS_V(result) == NT_STATUS_V(ERROR_INSUFFICIENT_BUFFER));
+ } while (NT_STATUS_V(result) == NT_STATUS_V(NT_STATUS_BUFFER_TOO_SMALL));
return result;
}
@@ -890,7 +890,7 @@ NTSTATUS cli_spoolss_getprinterdriverdir (
prs_mem_free(&qbuf);
prs_mem_free(&rbuf);
- } while (NT_STATUS_V(result) == NT_STATUS_V(ERROR_INSUFFICIENT_BUFFER));
+ } while (NT_STATUS_V(result) == NT_STATUS_V(NT_STATUS_BUFFER_TOO_SMALL));
return result;
}
@@ -1124,7 +1124,7 @@ NTSTATUS cli_spoolss_getprintprocessordirectory(struct cli_state *cli,
result = werror_to_ntstatus(r.status);
} while (NT_STATUS_V(result) ==
- NT_STATUS_V(ERROR_INSUFFICIENT_BUFFER));
+ NT_STATUS_V(NT_STATUS_BUFFER_TOO_SMALL));
done:
prs_mem_free(&qbuf);