diff options
author | Günther Deschner <gd@samba.org> | 2009-04-02 16:15:16 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-04-07 22:15:15 +0200 |
commit | c5b24d65cdb1b32196681499dcaf23ea70e1019b (patch) | |
tree | 9bb20d324a986ddb08f83288d48e817c84c31484 | |
parent | 0c22d55134b39a6bc983b4f852f623a51af4d362 (diff) | |
download | samba-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
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 2 |
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 */ |