diff options
author | Gerald Carter <jerry@samba.org> | 2003-04-11 23:48:24 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-04-11 23:48:24 +0000 |
commit | e1ea87ff03f7029f309a119e6be726a11000ab34 (patch) | |
tree | ffe7b852b8968ccfe3b6bcae4a4cc5f3dd530b8e /source3/rpc_server | |
parent | 14e03aed2970d75cba216741d74363fc353955d2 (diff) | |
download | samba-e1ea87ff03f7029f309a119e6be726a11000ab34.tar.gz samba-e1ea87ff03f7029f309a119e6be726a11000ab34.tar.bz2 samba-e1ea87ff03f7029f309a119e6be726a11000ab34.zip |
* We must return 0x2 as the majorversion for nt4 to upload drivers
* fix bug found by clobber_region()
(This used to be commit b2e29c7bd45f8f33d9ed58fe75bbf5ffc78350f5)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 90090efde8..b0529fea81 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -2307,7 +2307,17 @@ static WERROR getprinterdata_printer_server(TALLOC_CTX *ctx, fstring value, uint *type = 0x4; if((*data = (uint8 *)talloc(ctx, 4*sizeof(uint8) )) == NULL) return WERR_NOMEM; - SIVAL(*data, 0, 3); + + /* Windows NT 4.0 seems to not allow uploading of drivers + to a server that reports 0x3 as the MajorVersion. + need to investigate more how Win2k gets around this . + -- jerry */ + + if ( RA_WINNT == get_remote_arch() ) + SIVAL(*data, 0, 2); + else + SIVAL(*data, 0, 3); + *needed = 0x4; return WERR_OK; } |