The Samba-Bugzilla – Attachment 131 Details for
Bug 427
Netbios name is used in CUPS IPP originating host attribute
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fill ip or dns address into cups IPP originating-host attribute
samba.patch (text/plain), 1.10 KB, created by
Matthias Hilbig
on 2003-09-10 00:51:45 UTC
(
hide
)
Description:
Patch to fill ip or dns address into cups IPP originating-host attribute
Filename:
MIME Type:
Creator:
Matthias Hilbig
Created:
2003-09-10 00:51:45 UTC
Size:
1.10 KB
patch
obsolete
>diff -r -u --ignore-all-space samba-3.0.0rc1/source/printing/print_cups.c samba-3.0.0rc1_modified/source/printing/print_cups.c >--- samba-3.0.0rc1/source/printing/print_cups.c Sat Jun 7 19:57:36 2003 >+++ samba-3.0.0rc1_modified/source/printing/print_cups.c Thu Aug 28 17:17:36 2003 >@@ -680,7 +680,7 @@ > *response; /* IPP Response */ > cups_lang_t *language; /* Default language */ > char uri[HTTP_MAX_URI]; /* printer-uri attribute */ >- >+ char *clientname; /* hostname of client for job-originating-host attribute */ > > DEBUG(5,("cups_job_submit(%d, %p (%d))\n", snum, pjob, pjob->sysjob)); > >@@ -734,9 +734,14 @@ > ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", > NULL, pjob->user); > >+ clientname = client_name(); >+ if (strcmp(clientname, "UNKNOWN") == 0) { >+ clientname = client_addr(); >+ } >+ > ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, > "job-originating-host-name", NULL, >- get_remote_machine_name()); >+ clientname); > > ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, > pjob->jobname);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 427
: 131