diff options
author | Gerald Carter <jerry@samba.org> | 2003-04-11 23:50:21 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-04-11 23:50:21 +0000 |
commit | a056cd8845989475a72ae88681cfb3c9d7b23377 (patch) | |
tree | a5a1ba000b8337935807fa99fa4fec9486eb7009 /source3/rpc_server/srv_spoolss_nt.c | |
parent | 5b51fc4f065e9e68eefb530eb99ad8da9f4e5d28 (diff) | |
download | samba-a056cd8845989475a72ae88681cfb3c9d7b23377.tar.gz samba-a056cd8845989475a72ae88681cfb3c9d7b23377.tar.bz2 samba-a056cd8845989475a72ae88681cfb3c9d7b23377.zip |
* We must return 0x2 as the majorversion for nt4 to upload drivers
* fix bug found by clobber_region()
(This used to be commit ad2765bb5e0c1c4d8f12583e49df5b1bc7ffc389)
Diffstat (limited to 'source3/rpc_server/srv_spoolss_nt.c')
-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 424d7909d1..4432b06fc7 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; } |