Bugzilla – Attachment 64011 Details for
Bug 144091
postfix doesn't start with the latest kernel
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
Fix for postfix-2.2.6 to read the new style proc file
postfix-2.2.6-new-proc-config.diff (text/plain), 710 bytes, created by
Takashi Iwai
on 2006-01-19 14:03:22 UTC
(
hide
)
Description:
Fix for postfix-2.2.6 to read the new style proc file
Filename:
MIME Type:
Creator:
Takashi Iwai
Created:
2006-01-19 14:03:22 UTC
Size:
710 bytes
patch
obsolete
>--- src/util/inet_addr_local.c-dist 2006-01-19 14:27:57.000000000 +0100 >+++ src/util/inet_addr_local.c 2006-01-19 14:46:59.000000000 +0100 >@@ -475,6 +475,15 @@ static int ial_procnet_ifinet6(INET_ADDR > #endif > mask = addr; > while (fgets(buf, sizeof(buf), fp) != 0) { >+ /* strip colons to convert to the old format */ >+ int i = 0, len = strlen(buf); >+ while (buf[i] && buf[i] != ' ') { >+ if (buf[i] == ':') { >+ memmove(buf + i, buf + i + 1, len - i - 1); >+ len--; >+ } >+ i++; >+ } > /* 200501 hex_decode() is light-weight compared to getaddrinfo(). */ > if (hex_decode(addrbuf, buf, MAI_V6ADDR_BYTES * 2) == 0 > || sscanf(buf + MAI_V6ADDR_BYTES * 2, " %*x %x", &plen) != 1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 144091
: 64011 |
64013