summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-02 16:15:16 +0200
committerGünther Deschner <gd@samba.org>2009-04-07 22:15:15 +0200
commitc5b24d65cdb1b32196681499dcaf23ea70e1019b (patch)
tree9bb20d324a986ddb08f83288d48e817c84c31484 /source3
parent0c22d55134b39a6bc983b4f852f623a51af4d362 (diff)
downloadsamba-c5b24d65cdb1b32196681499dcaf23ea70e1019b.tar.gz
samba-c5b24d65cdb1b32196681499dcaf23ea70e1019b.tar.bz2
samba-c5b24d65cdb1b32196681499dcaf23ea70e1019b.zip
s3-spoolss: set servername to global_myname() in set_printer_hnd_name().
This allows spoolss_OpenPrinterEx to open a printer by printername. Now the Samba3 spoolss server passes the RPC-SPOOLSS-WIN test. Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 7bb0571042..098e59216b 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -445,7 +445,7 @@ static bool set_printer_hnd_name(Printer_entry *Printer, const char *handlename)
aprinter++;
}
} else {
- servername = "";
+ servername = global_myname();
}
/* save the servername to fill in replies on this handle */