FreeBSD Bugzilla – Attachment 12857 Details for
Bug 24659
realhostname_sa does not call trimdomain for IPv4 addresses
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.41 KB, created by
Jim.Pirzyk
on 2001-01-26 20:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Jim.Pirzyk
Created:
2001-01-26 20:40:01 UTC
Size:
2.41 KB
patch
obsolete
>*** realhostname.c.orig Tue Jul 18 03:25:37 2000 >--- realhostname.c Fri Jan 26 12:23:46 2001 >*************** >*** 131,150 **** > freeaddrinfo(ores); > goto numeric; > } >! if (strlen(ores->ai_canonname) > hsize) { > if (addr->sa_family == AF_INET) { > freeaddrinfo(ores); > goto numeric; > } >! strncpy(buf, >! ores->ai_canonname, >! sizeof(buf)); >! trimdomain(buf, hsize); >! strncpy(host, buf, hsize); >! } else >! strncpy(host, >! ores->ai_canonname, >! hsize); > break; > } > ((struct sockinet *)addr)->si_port = port; >--- 134,150 ---- > freeaddrinfo(ores); > goto numeric; > } >! strncpy(buf, >! ores->ai_canonname, >! sizeof(buf)); >! trimdomain(buf, hsize); >! strncpy(host, buf, hsize); >! if (strlen(host) > hsize) { > if (addr->sa_family == AF_INET) { > freeaddrinfo(ores); > goto numeric; > } >! } > break; > } > ((struct sockinet *)addr)->si_port = port;
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 24659
: 12857