.
OBS-URL: https://build.opensuse.org/package/show/server:mail/mailx?expand=0&rev=35
This commit is contained in:
parent
7ae77954d5
commit
e6053810c1
@ -10,21 +10,23 @@
|
|||||||
#
|
#
|
||||||
# Binaries are stripped with this command after installation.
|
# Binaries are stripped with this command after installation.
|
||||||
--- fio.c
|
--- fio.c
|
||||||
+++ fio.c 2013-12-03 08:55:19.158236784 +0000
|
+++ fio.c 2013-12-04 07:46:41.302735482 +0000
|
||||||
@@ -1024,6 +1024,16 @@ sopen(const char *xserver, struct sock *
|
@@ -1023,7 +1023,17 @@ sopen(const char *xserver, struct sock *
|
||||||
char *cp;
|
char *cp;
|
||||||
char *server = (char *)xserver;
|
char *server = (char *)xserver;
|
||||||
|
|
||||||
+#ifdef HAVE_IPv6_FUNCS
|
- if ((cp = strchr(server, ':')) != NULL) {
|
||||||
+ if ((cp = strchr(server, ']')) != NULL) {
|
+ if (*server == '[' && (cp = strchr(server, ']')) != NULL) {
|
||||||
+ if (cp[1] == ':') {
|
+ if (cp[1] == ':') {
|
||||||
+ portstr = &cp[2];
|
+ portstr = &cp[2];
|
||||||
+ server = salloc(cp+1 - xserver+1);
|
+#ifndef HAVE_IPv6_FUNCS
|
||||||
+ memcpy(server, xserver, cp+1 - xserver);
|
+ port = strtol(portstr, NULL, 10);
|
||||||
+ server[cp+1 - xserver] = '\0';
|
|
||||||
+ }
|
|
||||||
+ } else
|
|
||||||
+#endif /* HAVE_IPv6_FUNCS */
|
+#endif /* HAVE_IPv6_FUNCS */
|
||||||
if ((cp = strchr(server, ':')) != NULL) {
|
+ }
|
||||||
|
+ server = salloc(cp - xserver);
|
||||||
|
+ memcpy(server, xserver+1, cp - xserver - 1);
|
||||||
|
+ server[cp - xserver - 1] = '\0';
|
||||||
|
+ } else if ((cp = strchr(server, ':')) != NULL) {
|
||||||
portstr = &cp[1];
|
portstr = &cp[1];
|
||||||
#ifndef HAVE_IPv6_FUNCS
|
#ifndef HAVE_IPv6_FUNCS
|
||||||
|
port = strtol(portstr, NULL, 10);
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 4 08:54:21 UTC 2013 - werner@suse.de
|
||||||
|
|
||||||
|
- Crop off the brackets of an ipv6 addresse if found (bnc#853246)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 3 09:06:50 UTC 2013 - werner@suse.de
|
Tue Dec 3 09:06:50 UTC 2013 - werner@suse.de
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user