From d418f9f11abb5b5ed038acbaf5dbb2a656d39d87 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 16 Aug 2010 13:53:10 +0200 Subject: s3-printing: Lift the use of smbd_server_fd from job_submit. Signed-off-by: Andreas Schneider --- source3/printing/print_iprint.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'source3/printing/print_iprint.c') 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); -- cgit