From d4168c327bc42efc392561aeeef4edd702b3d653 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 5 Feb 2003 06:37:27 +0000 Subject: [PATCH] CUPS patch to log client name --- source/printing/print_cups.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/printing/print_cups.c b/source/printing/print_cups.c index 0c86c69ffda..c2839375566 100644 --- a/source/printing/print_cups.c +++ b/source/printing/print_cups.c @@ -734,6 +734,10 @@ cups_job_submit(int snum, struct printjob *pjob) ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, pjob->user); + ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, + "job-originating-host-name", NULL, + get_remote_machine_name()); + ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, pjob->jobname); -- 2.11.4.GIT