The Samba-Bugzilla – Attachment 12502 Details for
Bug 12285
"DriverVersion" registry backend parsing incorrect in spoolss
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch from master for v4-5-test (and all other branches)
patch.txt (text/plain), 1.55 KB, created by
Guenther Deschner
on 2016-09-22 00:29:59 UTC
(
hide
)
Description:
patch from master for v4-5-test (and all other branches)
Filename:
MIME Type:
Creator:
Guenther Deschner
Created:
2016-09-22 00:29:59 UTC
Size:
1.55 KB
patch
obsolete
>From 7249d3f276ec65b528bd604352eede1f6bf4360f Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd@samba.org> >Date: Mon, 12 Sep 2016 17:55:37 +0200 >Subject: [PATCH] s3-spoolss: fix winreg_printer_ver_to_qword > >Bug: https://bugzilla.samba.org/show_bug.cgi?id=12285 > >We were reporting the OS minor number as the driver version number in all >GetDriver/EnumDriver calls. > >Guenther > >Signed-off-by: Guenther Deschner <gd@samba.org> >Reviewed-by: Jeremy Allison <jra@samba.org> >(cherry picked from commit a9a1a16cc8b87a84cdfa049ebd26bf4eac1b3618) >--- > source3/rpc_client/cli_winreg_spoolss.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/source3/rpc_client/cli_winreg_spoolss.c b/source3/rpc_client/cli_winreg_spoolss.c >index ac4fe86..68ac053 100644 >--- a/source3/rpc_client/cli_winreg_spoolss.c >+++ b/source3/rpc_client/cli_winreg_spoolss.c >@@ -529,8 +529,9 @@ static WERROR winreg_printer_write_ver(TALLOC_CTX *mem_ctx, > NTSTATUS status; > char *str; > >- /* FIXME: check format is right, >- * this needs to be something like: 6.1.7600.16385 */ >+ /* >+ * this needs to be something like: 6.1.7600.16385 >+ */ > str = talloc_asprintf(mem_ctx, "%u.%u.%u.%u", > (unsigned)((data >> 48) & 0xFFFF), > (unsigned)((data >> 32) & 0xFFFF), >@@ -574,7 +575,7 @@ static WERROR winreg_printer_ver_to_dword(const char *str, uint64_t *data) > *data = ((uint64_t)(v1 & 0xFFFF) << 48) + > ((uint64_t)(v2 & 0xFFFF) << 32) + > ((uint64_t)(v3 & 0xFFFF) << 16) + >- (uint64_t)(v2 & 0xFFFF); >+ (uint64_t)(v4 & 0xFFFF); > > return WERR_OK; > } >-- >2.7.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
asn
:
review+
Actions:
View
Attachments on
bug 12285
: 12502