summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-02-13 06:52:45 +0000
committerJeremy Allison <jra@samba.org>2003-02-13 06:52:45 +0000
commitf4092b90bf4268a6499188e22000aec8c91b49ad (patch)
tree57aa0e4f94aae691cf621549cf9be32ad21d650a /source3
parent1f2a901d788f73d7f411129b59a261a5512b6b7d (diff)
downloadsamba-f4092b90bf4268a6499188e22000aec8c91b49ad.tar.gz
samba-f4092b90bf4268a6499188e22000aec8c91b49ad.tar.bz2
samba-f4092b90bf4268a6499188e22000aec8c91b49ad.zip
Merge JohnR's patch.
Removed extra copy of server name in the printername field (it was mangling the the name to be \\server\\\server\printer ... yes, there were 3 backslashes) reported by get & enum jobs level 2. Jeremy. (This used to be commit d079edf7327acba7f00b5868e7e6ce91ddc1eb14)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index e316fc9acb..6a8333eeea 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -6137,9 +6137,7 @@ static BOOL fill_job_info_2(JOB_INFO_2 *job_info, print_queue_struct *queue,
job_info->jobid=queue->job;
- slprintf(chaine, sizeof(chaine)-1, "\\\\%s\\%s", get_called_name(), ntprinter->info_2->printername);
-
- init_unistr(&job_info->printername, chaine);
+ init_unistr(&job_info->printername, ntprinter->info_2->printername);
init_unistr(&job_info->machinename, temp_name);
init_unistr(&job_info->username, queue->fs_user);