diff options
author | Günther Deschner <gd@samba.org> | 2013-01-19 01:37:29 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2013-01-24 17:42:25 +0100 |
commit | ce1a9ae8abc3e4d49374b5b02c6ec55d2df63f72 (patch) | |
tree | 95648fdcfc14411000bc39da30efc86b54293390 | |
parent | 11fba102082239c5d70b6314b19dab72b49478ed (diff) | |
download | samba-ce1a9ae8abc3e4d49374b5b02c6ec55d2df63f72.tar.gz samba-ce1a9ae8abc3e4d49374b5b02c6ec55d2df63f72.tar.bz2 samba-ce1a9ae8abc3e4d49374b5b02c6ec55d2df63f72.zip |
s3-spoolss: Make it easier to manipulate the returned OSVersion at runtime.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | source3/rpc_server/spoolss/srv_spoolss_nt.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index 3107cda36f..ef203d8f54 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -2338,9 +2338,13 @@ static WERROR getprinterdata_printer_server(TALLOC_CTX *mem_ctx, enum ndr_err_code ndr_err; struct spoolss_OSVersion os; - os.major = 5; /* Windows 2000 == 5.0 */ - os.minor = 0; - os.build = 2195; /* build */ + os.major = lp_parm_int(GLOBAL_SECTION_SNUM, + "spoolss", "os_major", 5); + /* Windows 2000 == 5.0 */ + os.minor = lp_parm_int(GLOBAL_SECTION_SNUM, + "spoolss", "os_minor", 0); + os.build = lp_parm_int(GLOBAL_SECTION_SNUM, + "spoolss", "os_build", 2195); os.extra_string = ""; /* leave extra string empty */ ndr_err = ndr_push_struct_blob(&blob, mem_ctx, &os, @@ -2349,6 +2353,10 @@ static WERROR getprinterdata_printer_server(TALLOC_CTX *mem_ctx, return WERR_GENERAL_FAILURE; } + if (DEBUGLEVEL >= 10) { + NDR_PRINT_DEBUG(spoolss_OSVersion, &os); + } + *type = REG_BINARY; data->binary = blob; |