summaryrefslogtreecommitdiff
path: root/source3/printing/print_iprint.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-16 13:53:10 +0200
committerAndreas Schneider <asn@samba.org>2010-08-16 14:02:19 +0200
commitd418f9f11abb5b5ed038acbaf5dbb2a656d39d87 (patch)
tree9db83e16fbcfa1fd64c5270252751f06bc13b976 /source3/printing/print_iprint.c
parentdc2313d1e87b68a5d85be8443e377491f979ecbc (diff)
downloadsamba-d418f9f11abb5b5ed038acbaf5dbb2a656d39d87.tar.gz
samba-d418f9f11abb5b5ed038acbaf5dbb2a656d39d87.tar.bz2
samba-d418f9f11abb5b5ed038acbaf5dbb2a656d39d87.zip
s3-printing: Lift the use of smbd_server_fd from job_submit.
Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/printing/print_iprint.c')
-rw-r--r--source3/printing/print_iprint.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source3/printing/print_iprint.c b/source3/printing/print_iprint.c
index 75324960ef..ea375da3b7 100644
--- a/source3/printing/print_iprint.c
+++ b/source3/printing/print_iprint.c
@@ -731,8 +731,6 @@ static int iprint_job_submit(int snum, struct printjob *pjob)
ipp_attribute_t *attr; /* Current attribute */
cups_lang_t *language = NULL; /* Default language */
char uri[HTTP_MAX_URI]; /* printer-uri attribute */
- const char *clientname = NULL; /* hostname of client for job-originating-host attribute */
- char addr[INET6_ADDRSTRLEN];
DEBUG(5,("iprint_job_submit(%d, %p (%d))\n", snum, pjob, pjob->sysjob));
@@ -785,14 +783,9 @@ static int iprint_job_submit(int snum, struct printjob *pjob)
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name",
NULL, pjob->user);
- clientname = client_name(smbd_server_fd());
- if (strcmp(clientname, "UNKNOWN") == 0) {
- clientname = client_addr(smbd_server_fd(),addr,sizeof(addr));
- }
-
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
"job-originating-host-name", NULL,
- clientname);
+ pjob->clientmachine);
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL,
pjob->jobname);