summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-02-11 13:07:38 +0100
committerGünther Deschner <gd@samba.org>2010-02-11 13:29:59 +0100
commita16e97459342a838a77cd9f17df5347b0632219c (patch)
tree2f2676f4dbc2f610abe78f0fa96d56f1b8192185 /source3/rpc_server
parent25001bbd1b0b32073073dab7cf5b78a2b902163f (diff)
downloadsamba-a16e97459342a838a77cd9f17df5347b0632219c.tar.gz
samba-a16e97459342a838a77cd9f17df5347b0632219c.tar.bz2
samba-a16e97459342a838a77cd9f17df5347b0632219c.zip
spoolss: allow to set server architecture via parametric option.
This allows to set "spoolss:architecture = 'Windows x64'" for debugging purpose. Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 882193aaef..5f431c65bc 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -2270,8 +2270,8 @@ static WERROR getprinterdata_printer_server(TALLOC_CTX *mem_ctx,
if (!StrCaseCmp(value, "Architecture")) {
*type = REG_SZ;
-
- data->string = talloc_strdup(mem_ctx, "Windows NT x86");
+ data->string = talloc_strdup(mem_ctx,
+ lp_parm_const_string(GLOBAL_SECTION_SNUM, "spoolss", "architecture", SPOOLSS_ARCHITECTURE_NT_X86));
W_ERROR_HAVE_NO_MEMORY(data->string);
return WERR_OK;