summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-04-28 17:04:10 +0200
committerGünther Deschner <gd@samba.org>2010-05-18 15:18:30 +0200
commit4108728b7e9e4d53624c81984c4ee8e0e6bc81d9 (patch)
treea16271e27d9ae1881c57f2259224a26fbe86d36c /source3/rpc_server
parent7d363b8922e7ec740858339aaa0052a990b264fa (diff)
downloadsamba-4108728b7e9e4d53624c81984c4ee8e0e6bc81d9.tar.gz
samba-4108728b7e9e4d53624c81984c4ee8e0e6bc81d9.tar.bz2
samba-4108728b7e9e4d53624c81984c4ee8e0e6bc81d9.zip
s3-spoolss: Use the spoolss_map_to_os2_driver to modify drivername.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c
index f7877b33f8..b46fc58759 100644
--- a/source3/rpc_server/srv_spoolss_util.c
+++ b/source3/rpc_server/srv_spoolss_util.c
@@ -2180,6 +2180,11 @@ WERROR winreg_get_printer(TALLOC_CTX *mem_ctx,
goto done;
}
+ /* Fix for OS/2 drivers. */
+ if (get_remote_arch() == RA_OS2) {
+ spoolss_map_to_os2_driver(info2, &info2->drivername);
+ }
+
if (pinfo2) {
*pinfo2 = talloc_move(mem_ctx, &info2);
}