FreeBSD Bugzilla – Attachment 7858 Details for
Bug 16789
fingerd logging not IPv6 aware
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 783 bytes, created by
Ben Smithurst
on 2000-02-17 18:00:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Ben Smithurst
Created:
2000-02-17 18:00:01 UTC
Size:
783 bytes
patch
obsolete
>diff -ur fingerd.orig/fingerd.c fingerd/fingerd.c >--- fingerd.orig/fingerd.c Sat Aug 28 01:09:28 1999 >+++ fingerd/fingerd.c Thu Feb 17 17:07:26 2000 >@@ -70,7 +70,7 @@ > register FILE *fp; > register int ch; > register char *lp; >- struct sockaddr_in sin; >+ struct sockaddr_storage sin; > int p[2], logging, secure, sval; > #define ENTRIES 50 > char **ap, *av[ENTRIES + 1], **comp, line[1024], *prog; >@@ -130,7 +130,8 @@ > sval = sizeof(sin); > if (getpeername(0, (struct sockaddr *)&sin, &sval) < 0) > logerr("getpeername: %s", strerror(errno)); >- realhostname(rhost, sizeof rhost - 1, &sin.sin_addr); >+ realhostname_sa(rhost, sizeof rhost - 1, >+ (struct sockaddr *)&sin, sval); > rhost[sizeof(rhost) - 1] = '\0'; > syslog(LOG_NOTICE, "query from %s: `%s'", rhost, t); > }
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 16789
: 7858