summaryrefslogtreecommitdiff
path: root/source3/smbd/lanman.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-10-01 20:34:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:52 -0500
commit31441aaa137145511a2c09dd540d46876df56701 (patch)
treef9592ea9d786f3ea58ace1d5ffaaf7e547f41e3f /source3/smbd/lanman.c
parentf219db7d698438969be95186dad7dc60512b86a9 (diff)
downloadsamba-31441aaa137145511a2c09dd540d46876df56701.tar.gz
samba-31441aaa137145511a2c09dd540d46876df56701.tar.bz2
samba-31441aaa137145511a2c09dd540d46876df56701.zip
r2768: BUG 1519: save the hostname used in the open_printer_ex() for later reuse when filling in the spolss replies (also gets rid of get_called_name()
(This used to be commit 57db8ca91f52329c7f8985c04463b6b69015b0c4)
Diffstat (limited to 'source3/smbd/lanman.c')
-rw-r--r--source3/smbd/lanman.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index 524c982998..8b07f0e305 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -548,9 +548,8 @@ static void fill_printq_info_52(connection_struct *conn, int snum,
PACKS(desc, "z", driver.info_3->datafile); /* Datafile name */
PACKS(desc, "z", driver.info_3->monitorname); /* language monitor */
- fstrcpy(location, "\\\\");
- fstrcat(location, get_called_name());
- fstrcat(location, "\\print$\\WIN40\\0");
+ fstrcpy(location, "\\\\%L\\print$\\WIN40\\0");
+ standard_sub_basic( NULL, location, sizeof(location)-1 );
PACKS(desc,"z", location); /* share to retrieve files */
PACKS(desc,"z", driver.info_3->defaultdatatype); /* default data type */