diff options
author | Gerald Carter <jerry@samba.org> | 2005-09-27 19:18:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:04:47 -0500 |
commit | 39369c8041e0633e88c30e0c62530c2393ef80f6 (patch) | |
tree | 1e41f77a4c0ea4e548cfb44ebeef7398abffebd8 /source/printing | |
parent | fc311adc7964feef5bac85096727f54922d1186c (diff) | |
download | samba-39369c8041e0633e88c30e0c62530c2393ef80f6.tar.gz samba-39369c8041e0633e88c30e0c62530c2393ef80f6.tar.xz samba-39369c8041e0633e88c30e0c62530c2393ef80f6.zip |
r10554: * BUG 3057: assume x64 drivers are v3 drivers
* BUG 3087: allow smbspool to establisha geust connection
using a username with no password
Diffstat (limited to 'source/printing')
-rw-r--r-- | source/printing/nt_printing.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index f8d9220c05d..8061842ad9f 100644 --- a/source/printing/nt_printing.c +++ b/source/printing/nt_printing.c @@ -1386,12 +1386,19 @@ static uint32 get_correct_cversion(const char *architecture, fstring driverpath_ *perr = WERR_INVALID_PARAM; /* If architecture is Windows 95/98/ME, the version is always 0. */ - if (strcmp(architecture, "WIN40") == 0) { + if (strcmp(architecture, SPL_ARCH_WIN40) == 0) { DEBUG(10,("get_correct_cversion: Driver is Win9x, cversion = 0\n")); *perr = WERR_OK; return 0; } + /* If architecture is Windows x64, the version is always 3. */ + if (strcmp(architecture, SPL_ARCH_X64) == 0) { + DEBUG(10,("get_correct_cversion: Driver is x64, cversion = 3\n")); + *perr = WERR_OK; + return 3; + } + /* * Connect to the print$ share under the same account as the user connected * to the rpc pipe. Note we must still be root to do this. |