Accepting request 390221 from server:mail

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/390221
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mailx?expand=0&rev=36
This commit is contained in:
Dominique Leuenberger 2016-04-30 21:27:32 +00:00 committed by Git OBS Bridge
commit 57ff87104a
5 changed files with 80 additions and 83 deletions

View File

@ -1,5 +1,11 @@
---
def.h | 4 +
mime.c | 144 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
sendout.c | 40 +++++++++++++----
3 files changed, 172 insertions(+), 16 deletions(-)
--- def.h --- def.h
+++ def.h 2012-03-23 13:57:44.000000000 +0000 +++ def.h 2016-04-08 14:58:42.729798789 +0000
@@ -142,7 +142,9 @@ enum mimeclean { @@ -142,7 +142,9 @@ enum mimeclean {
MIME_LONGLINES = 002, /* has lines too long for RFC 2822 */ MIME_LONGLINES = 002, /* has lines too long for RFC 2822 */
MIME_CTRLCHAR = 004, /* contains control characters */ MIME_CTRLCHAR = 004, /* contains control characters */
@ -12,7 +18,7 @@
enum tdflags { enum tdflags {
--- mime.c --- mime.c
+++ mime.c 2013-07-02 10:25:35.000000000 +0000 +++ mime.c 2016-04-08 15:00:05.808259514 +0000
@@ -302,13 +302,78 @@ gettcharset(void) @@ -302,13 +302,78 @@ gettcharset(void)
return t; return t;
} }
@ -101,7 +107,7 @@
if (w & GIDENT) { if (w & GIDENT) {
if (hp->h_from && name_highbit(hp->h_from)) if (hp->h_from && name_highbit(hp->h_from))
goto needs; goto needs;
@@ -355,7 +422,7 @@ need_hdrconv(struct header *hp, enum gfi @@ -355,7 +421,7 @@ need_hdrconv(struct header *hp, enum gfi
if (w & GSUBJECT && has_highbit(hp->h_subject)) if (w & GSUBJECT && has_highbit(hp->h_subject))
goto needs; goto needs;
return NULL; return NULL;
@ -128,7 +134,7 @@
match = 1; match = 1;
break; break;
} }
@@ -748,16 +814,66 @@ mime_isclean(FILE *f) @@ -748,14 +814,62 @@ mime_isclean(FILE *f)
maxlen = curlen; maxlen = curlen;
curlen = 1; curlen = 1;
} else if (c & 0200) { } else if (c & 0200) {
@ -172,10 +178,8 @@
+ continue; + continue;
+ } + }
+ latin: + latin:
+ if (text_chars[i & 0377] == I) { + if (text_chars[i & 0377] == I)
+ isclean |= MIME_LATIN; + isclean |= MIME_LATIN;
+ continue;
+ }
+ if (text_chars[i & 0377] == X) { + if (text_chars[i & 0377] == X) {
+ isclean |= MIME_CTRLCHAR; + isclean |= MIME_CTRLCHAR;
+ break; + break;
@ -189,14 +193,12 @@
+ break; + break;
} }
} while (c != EOF); } while (c != EOF);
if (lastc != '\n')
isclean |= MIME_NOTERMNL;
+ if (isclean & (MIME_CTRLCHAR|MIME_HASNUL)) + if (isclean & (MIME_CTRLCHAR|MIME_HASNUL))
+ isclean &= (MIME_CTRLCHAR|MIME_HASNUL); + isclean &= (MIME_CTRLCHAR|MIME_HASNUL);
if (lastc != '\n')
isclean |= MIME_NOTERMNL;
clearerr(f); clearerr(f);
fseek(f, initial_pos, SEEK_SET); @@ -826,11 +940,16 @@ get_mime_convert(FILE *fp, char **conten
if ((cp = value("maximum-unencoded-line-length")) != NULL)
@@ -826,11 +942,16 @@ get_mime_convert(FILE *fp, char **conten
* ^I or ^L in text/plain bodies. However, some * ^I or ^L in text/plain bodies. However, some
* obscure character sets actually contain these * obscure character sets actually contain these
* characters, so the content type can be set. * characters, so the content type can be set.
@ -213,7 +215,7 @@
} }
return convert; return convert;
} }
@@ -989,8 +1110,14 @@ mime_fromhdr(struct str *in, struct str @@ -989,8 +1108,14 @@ mime_fromhdr(struct str *in, struct str
#ifdef HAVE_ICONV #ifdef HAVE_ICONV
iconv_t fhicd = (iconv_t)-1; iconv_t fhicd = (iconv_t)-1;
#endif #endif
@ -228,7 +230,7 @@
maxstor = in->l; maxstor = in->l;
out->s = smalloc(maxstor + 1); out->s = smalloc(maxstor + 1);
out->l = 0; out->l = 0;
@@ -1010,7 +1137,7 @@ mime_fromhdr(struct str *in, struct str @@ -1010,7 +1135,7 @@ mime_fromhdr(struct str *in, struct str
#ifdef HAVE_ICONV #ifdef HAVE_ICONV
if (fhicd != (iconv_t)-1) if (fhicd != (iconv_t)-1)
iconv_close(fhicd); iconv_close(fhicd);
@ -237,7 +239,7 @@
fhicd = iconv_open_ft(tcs, cs); fhicd = iconv_open_ft(tcs, cs);
else else
fhicd = (iconv_t)-1; fhicd = (iconv_t)-1;
@@ -1105,12 +1232,17 @@ notmime: @@ -1105,12 +1230,17 @@ notmime:
} }
fromhdr_end: fromhdr_end:
*q = '\0'; *q = '\0';
@ -257,7 +259,7 @@
out->l = delctrl(out->s, out->l); out->l = delctrl(out->s, out->l);
#ifdef HAVE_ICONV #ifdef HAVE_ICONV
--- sendout.c --- sendout.c
+++ sendout.c 2012-03-23 18:30:50.949933289 +0000 +++ sendout.c 2016-04-08 14:58:42.729798789 +0000
@@ -226,6 +226,23 @@ attach_file1(struct attachment *ap, FILE @@ -226,6 +226,23 @@ attach_file1(struct attachment *ap, FILE
charset = ap->a_charset; charset = ap->a_charset;
convert = get_mime_convert(fi, &contenttype, &charset, &isclean, convert = get_mime_convert(fi, &contenttype, &charset, &isclean,

View File

@ -1,5 +1,19 @@
---
cmd1.c | 20 ++++++++++----------
collect.c | 8 ++++----
def.h | 2 +-
fio.c | 4 ++--
imap.c | 8 ++++----
junk.c | 30 +++++++++++++++---------------
macro.c | 2 +-
md5.c | 38 +++++++++++++++++++-------------------
mime.c | 24 ++++++++++++------------
sendout.c | 8 ++++----
tty.c | 2 +-
11 files changed, 73 insertions(+), 73 deletions(-)
--- cmd1.c --- cmd1.c
+++ cmd1.c 2013-07-02 10:44:54.178300341 +0000 +++ cmd1.c 2016-04-08 14:08:47.753310695 +0000
@@ -112,14 +112,14 @@ headers(void *v) @@ -112,14 +112,14 @@ headers(void *v)
lastg = g; lastg = g;
lastmq = mq; lastmq = mq;
@ -16,7 +30,7 @@
g++; g++;
} }
- if (lastmq && (n==-2 || n==-1 && mp==&message[msgCount])) { - if (lastmq && (n==-2 || n==-1 && mp==&message[msgCount])) {
+ if (lastmq && ((n==-2 || n==-1) && mp==&message[msgCount])) { + if (lastmq && (n==-2 || (n==-1 && mp==&message[msgCount]))) {
g = lastg; g = lastg;
mq = lastmq; mq = lastmq;
} }
@ -36,12 +50,12 @@
g++; g++;
} }
- if (lastmq && (n==-2 || n==-1 && mp==&message[msgCount])) { - if (lastmq && (n==-2 || n==-1 && mp==&message[msgCount])) {
+ if (lastmq && ((n==-2 || n==-1) && mp==&message[msgCount])) { + if (lastmq && (n==-2 || (n==-1 && mp==&message[msgCount]))) {
g = lastg; g = lastg;
mq = lastmq; mq = lastmq;
} }
--- collect.c --- collect.c
+++ collect.c 2013-07-02 10:56:15.602310172 +0000 +++ collect.c 2016-04-08 14:14:42.838735568 +0000
@@ -279,8 +279,8 @@ read_attachment_data(struct attachment * @@ -279,8 +279,8 @@ read_attachment_data(struct attachment *
perror(ap->a_name); perror(ap->a_name);
} }
@ -65,7 +79,7 @@
if (putline(collf, linebuf, count) < 0) if (putline(collf, linebuf, count) < 0)
goto err; goto err;
--- def.h --- def.h
+++ def.h 2013-07-02 10:36:04.091168058 +0000 +++ def.h 2016-04-08 14:21:12.939513915 +0000
@@ -408,7 +408,7 @@ enum gfield { @@ -408,7 +408,7 @@ enum gfield {
#define GMASK (GTO|GSUBJECT|GCC|GBCC|GREPLYTO) /* Mask of places from whence */ #define GMASK (GTO|GSUBJECT|GCC|GBCC|GREPLYTO) /* Mask of places from whence */
@ -76,8 +90,8 @@
/* /*
* Structure used to pass about the current * Structure used to pass about the current
--- fio.c --- fio.c
+++ fio.c 2013-07-02 10:59:31.683460415 +0000 +++ fio.c 2016-04-08 14:17:14.651924938 +0000
@@ -600,8 +600,8 @@ getfold(char *name, int size) @@ -543,8 +543,8 @@ getfold(char *name, int size)
if ((folder = value("folder")) == NULL) if ((folder = value("folder")) == NULL)
return (-1); return (-1);
@ -89,7 +103,7 @@
name[size-1]='\0'; name[size-1]='\0';
} else { } else {
--- imap.c --- imap.c
+++ imap.c 2013-07-02 09:26:20.434847340 +0000 +++ imap.c 2016-04-08 14:20:47.983975844 +0000
@@ -1868,11 +1868,11 @@ imap_update(struct mailbox *mp) @@ -1868,11 +1868,11 @@ imap_update(struct mailbox *mp)
stored++; stored++;
gotcha++; gotcha++;
@ -110,25 +124,25 @@
initcache(&xmb); initcache(&xmb);
memset(&xm, 0, sizeof xm); memset(&xm, 0, sizeof xm);
- xm.m_flag = flag&MREAD | MNEW; - xm.m_flag = flag&MREAD | MNEW;
+ xm.m_flag = flag&(MREAD|MNEW); + xm.m_flag = (flag&MREAD) | MNEW;
xm.m_time = t; xm.m_time = t;
xm.m_block = mailx_blockof(off1); xm.m_block = mailx_blockof(off1);
xm.m_offset = mailx_offsetof(off1); xm.m_offset = mailx_offsetof(off1);
--- junk.c --- junk.c
+++ junk.c 2013-07-02 09:36:11.306215424 +0000 +++ junk.c 2016-04-08 14:32:27.147010580 +0000
@@ -345,11 +345,11 @@ putdb(void) @@ -345,11 +345,11 @@ putdb(void)
void *zp; void *zp;
int scomp, ncomp; int scomp, ncomp;
- if (!super_mmapped && (sfp = dbfp(SUPER, O_WRONLY, &scomp, &sname)) - if (!super_mmapped && (sfp = dbfp(SUPER, O_WRONLY, &scomp, &sname))
- == NULL || sfp == (FILE *)-1) - == NULL || sfp == (FILE *)-1)
+ if (!super_mmapped && ((sfp = dbfp(SUPER, O_WRONLY, &scomp, &sname)) + if ((!super_mmapped && (sfp = dbfp(SUPER, O_WRONLY, &scomp, &sname))
+ == NULL || sfp == (FILE *)-1)) + == NULL) || sfp == (FILE *)-1)
return; return;
- if (!nodes_mmapped && (nfp = dbfp(NODES, O_WRONLY, &ncomp, &nname)) - if (!nodes_mmapped && (nfp = dbfp(NODES, O_WRONLY, &ncomp, &nname))
- == NULL || nfp == (FILE *)-1) - == NULL || nfp == (FILE *)-1)
+ if (!nodes_mmapped && ((nfp = dbfp(NODES, O_WRONLY, &ncomp, &nname)) + if ((!nodes_mmapped && (nfp = dbfp(NODES, O_WRONLY, &ncomp, &nname))
+ == NULL || nfp == (FILE *)-1)) + == NULL) || nfp == (FILE *)-1)
return; return;
if (super_mmapped == 0 || nodes_mmapped == 0) if (super_mmapped == 0 || nodes_mmapped == 0)
holdint(); holdint();
@ -197,7 +211,7 @@
best[j+1] = best[j]; best[j+1] = best[j];
best[i].dist = d; best[i].dist = d;
--- macro.c --- macro.c
+++ macro.c 2013-07-02 10:57:57.718909269 +0000 +++ macro.c 2016-04-08 14:34:50.856343786 +0000
@@ -195,7 +195,7 @@ ccall(void *v) @@ -195,7 +195,7 @@ ccall(void *v)
char **args = v; char **args = v;
struct macro *mp; struct macro *mp;
@ -208,7 +222,7 @@
return 1; return 1;
} }
--- md5.c --- md5.c
+++ md5.c 2013-07-02 11:17:37.825823499 +0000 +++ md5.c 2016-04-08 13:55:12.292417526 +0000
@@ -70,42 +70,42 @@ static unsigned char PADDING[64] = { @@ -70,42 +70,42 @@ static unsigned char PADDING[64] = {
/* /*
* F, G, H and I are basic MD5 functions. * F, G, H and I are basic MD5 functions.
@ -225,7 +239,7 @@
* ROTATE_LEFT rotates x left n bits. * ROTATE_LEFT rotates x left n bits.
*/ */
-#define ROTATE_LEFT(x, n) ((x)<<(n) & 0xffffffff | (x) >> 32-(n)) -#define ROTATE_LEFT(x, n) ((x)<<(n) & 0xffffffff | (x) >> 32-(n))
+#define ROTATE_LEFT(x, n) ((((x)<<(n)) & 0xffffffff) | ((x) >> (32-(n)))) +#define ROTATE_LEFT(x, n) (((x)<<(n) & 0xffffffff) | (x) >> (32-(n)))
/* /*
* FF, GG, HH, and II transformations for rounds 1, 2, 3, and 4. * FF, GG, HH, and II transformations for rounds 1, 2, 3, and 4.
@ -233,34 +247,34 @@
*/ */
#define FF(a, b, c, d, x, s, ac) { \ #define FF(a, b, c, d, x, s, ac) { \
- (a) = (a) + F((b), (c), (d)) + (x) + ((ac)&0xffffffff) & 0xffffffff; \ - (a) = (a) + F((b), (c), (d)) + (x) + ((ac)&0xffffffff) & 0xffffffff; \
+ (a) = (a) + F((b), (c), (d)) + (((x) + ((ac)&0xffffffff)) & 0xffffffff); \ + (a) = ((a) + F((b), (c), (d)) + (x) + ((ac)&0xffffffff)) & 0xffffffff; \
(a) = ROTATE_LEFT((a), (s)); \ (a) = ROTATE_LEFT((a), (s)); \
- (a) = (a) + (b) & 0xffffffff; \ - (a) = (a) + (b) & 0xffffffff; \
+ (a) = (a) + ((b) & 0xffffffff); \ + (a) = ((a) + (b)) & 0xffffffff; \
} }
#define GG(a, b, c, d, x, s, ac) { \ #define GG(a, b, c, d, x, s, ac) { \
- (a) = (a) + G((b), (c), (d)) + (x) + ((ac)&0xffffffff) & 0xffffffff; \ - (a) = (a) + G((b), (c), (d)) + (x) + ((ac)&0xffffffff) & 0xffffffff; \
+ (a) = (a) + G((b), (c), (d)) + (((x) + ((ac)&0xffffffff)) & 0xffffffff); \ + (a) = ((a) + G((b), (c), (d)) + (x) + ((ac)&0xffffffff)) & 0xffffffff; \
(a) = ROTATE_LEFT((a), (s)); \ (a) = ROTATE_LEFT((a), (s)); \
- (a) = (a) + (b) & 0xffffffff; \ - (a) = (a) + (b) & 0xffffffff; \
+ (a) = (a) + ((b) & 0xffffffff); \ + (a) = ((a) + (b)) & 0xffffffff; \
} }
#define HH(a, b, c, d, x, s, ac) { \ #define HH(a, b, c, d, x, s, ac) { \
- (a) = (a) + H((b), (c), (d)) + (x) + ((ac)&0xffffffff) & 0xffffffff; \ - (a) = (a) + H((b), (c), (d)) + (x) + ((ac)&0xffffffff) & 0xffffffff; \
+ (a) = (a) + H((b), (c), (d)) + (((x) + ((ac)&0xffffffff)) & 0xffffffff); \ + (a) = ((a) + H((b), (c), (d)) + (x) + ((ac)&0xffffffff)) & 0xffffffff; \
(a) = ROTATE_LEFT((a), (s)); \ (a) = ROTATE_LEFT((a), (s)); \
- (a) = (a) + (b) & 0xffffffff; \ - (a) = (a) + (b) & 0xffffffff; \
+ (a) = (a) + ((b) & 0xffffffff); \ + (a) = ((a) + (b)) & 0xffffffff; \
} }
#define II(a, b, c, d, x, s, ac) { \ #define II(a, b, c, d, x, s, ac) { \
- (a) = (a) + I((b), (c), (d)) + (x) + ((ac)&0xffffffff) & 0xffffffff; \ - (a) = (a) + I((b), (c), (d)) + (x) + ((ac)&0xffffffff) & 0xffffffff; \
+ (a) = (a) + I((b), (c), (d)) + (((x) + ((ac)&0xffffffff)) & 0xffffffff); \ + (a) = ((a) + I((b), (c), (d)) + (x) + ((ac)&0xffffffff)) & 0xffffffff; \
(a) = ROTATE_LEFT((a), (s)); \ (a) = ROTATE_LEFT((a), (s)); \
- (a) = (a) + (b) & 0xffffffff; \ - (a) = (a) + (b) & 0xffffffff; \
+ (a) = (a) + ((b) & 0xffffffff); \ + (a) = ((a) + (b)) & 0xffffffff; \
} }
/* /*
@ -269,12 +283,12 @@
/* Update number of bits */ /* Update number of bits */
- if ((context->count[0] = context->count[0] + (inputLen<<3) & 0xffffffff) - if ((context->count[0] = context->count[0] + (inputLen<<3) & 0xffffffff)
+ if ((context->count[0] = context->count[0] + ((inputLen<<3) & 0xffffffff)) + if ((context->count[0] = (context->count[0] + (inputLen<<3)) & 0xffffffff)
< (inputLen<<3 & 0xffffffff)) < (inputLen<<3 & 0xffffffff))
- context->count[1] = context->count[1] + 1 & 0xffffffff; - context->count[1] = context->count[1] + 1 & 0xffffffff;
- context->count[1] = context->count[1] + (inputLen>>29) & 0xffffffff; - context->count[1] = context->count[1] + (inputLen>>29) & 0xffffffff;
+ context->count[1] = context->count[1] + (1 & 0xffffffff); + context->count[1] = (context->count[1] + 1) & 0xffffffff;
+ context->count[1] = context->count[1] + ((inputLen>>29) & 0xffffffff); + context->count[1] = (context->count[1] + (inputLen>>29)) & 0xffffffff;
partLen = 64 - index; partLen = 64 - index;
@ -286,41 +300,16 @@
- state[1] = state[1] + b & 0xffffffff; - state[1] = state[1] + b & 0xffffffff;
- state[2] = state[2] + c & 0xffffffff; - state[2] = state[2] + c & 0xffffffff;
- state[3] = state[3] + d & 0xffffffff; - state[3] = state[3] + d & 0xffffffff;
+ state[0] = state[0] + (a & 0xffffffff); + state[0] = (state[0] + a) & 0xffffffff;
+ state[1] = state[1] + (b & 0xffffffff); + state[1] = (state[1] + b) & 0xffffffff;
+ state[2] = state[2] + (c & 0xffffffff); + state[2] = (state[2] + c) & 0xffffffff;
+ state[3] = state[3] + (d & 0xffffffff); + state[3] = (state[3] + d) & 0xffffffff;
/* /*
* Zeroize sensitive information. * Zeroize sensitive information.
--- mime.c --- mime.c
+++ mime.c 2013-07-02 10:19:41.993365604 +0000 +++ mime.c 2016-04-08 14:52:21.924855005 +0000
@@ -855,10 +855,8 @@ mime_isclean(FILE *f) @@ -916,8 +916,8 @@ get_mime_convert(FILE *fp, char **conten
continue;
}
latin:
- if (text_chars[i & 0377] == I) {
+ if (text_chars[i & 0377] == I)
isclean |= MIME_LATIN;
- continue;
- }
if (text_chars[i & 0377] == X) {
isclean |= MIME_CTRLCHAR;
break;
@@ -871,10 +869,10 @@ mime_isclean(FILE *f)
break;
}
} while (c != EOF);
- if (lastc != '\n')
- isclean |= MIME_NOTERMNL;
if (isclean & (MIME_CTRLCHAR|MIME_HASNUL))
isclean &= (MIME_CTRLCHAR|MIME_HASNUL);
+ if (lastc != '\n')
+ isclean |= MIME_NOTERMNL;
clearerr(f);
fseek(f, initial_pos, SEEK_SET);
if ((cp = value("maximum-unencoded-line-length")) != NULL)
@@ -916,8 +914,8 @@ get_mime_convert(FILE *fp, char **conten
int convert; int convert;
*isclean = mime_isclean(fp); *isclean = mime_isclean(fp);
@ -331,7 +320,7 @@
convert = CONV_TOB64; convert = CONV_TOB64;
if (*contenttype == NULL || if (*contenttype == NULL ||
ascncasecmp(*contenttype, "text/", 5) == 0) ascncasecmp(*contenttype, "text/", 5) == 0)
@@ -990,13 +988,13 @@ mime_write_toqp(struct str *in, FILE *fo @@ -990,13 +990,13 @@ mime_write_toqp(struct str *in, FILE *fo
upper = in->s + in->l; upper = in->s + in->l;
for (p = in->s, l = 0; p < upper; p++) { for (p = in->s, l = 0; p < upper; p++) {
if (mustquote(*p&0377) || if (mustquote(*p&0377) ||
@ -351,7 +340,7 @@
if (l >= 69) { if (l >= 69) {
sz += 2; sz += 2;
fwrite("=\n", sizeof (char), 2, fo); fwrite("=\n", sizeof (char), 2, fo);
@@ -1036,8 +1034,8 @@ mime_str_toqp(struct str *in, struct str @@ -1036,8 +1036,8 @@ mime_str_toqp(struct str *in, struct str
out->l = in->l; out->l = in->l;
upper = in->s + in->l; upper = in->s + in->l;
for (p = in->s; p < upper; p++) { for (p = in->s; p < upper; p++) {
@ -362,7 +351,7 @@
if (inhdr && *p == ' ') { if (inhdr && *p == ' ') {
*q++ = '_'; *q++ = '_';
} else { } else {
@@ -1347,8 +1345,8 @@ mime_write_tohdr(struct str *in, FILE *f @@ -1347,8 +1347,8 @@ mime_write_tohdr(struct str *in, FILE *f
wbeg == &upper[-1])) wbeg == &upper[-1]))
mustquote++; mustquote++;
} }
@ -374,7 +363,7 @@
cin.s = lastwordend ? lastwordend : cin.s = lastwordend ? lastwordend :
wbeg; wbeg;
--- sendout.c --- sendout.c
+++ sendout.c 2013-07-02 08:04:20.342719526 +0000 +++ sendout.c 2016-04-08 14:46:47.127059692 +0000
@@ -1372,10 +1372,10 @@ fmt(char *str, struct name *np, FILE *fo @@ -1372,10 +1372,10 @@ fmt(char *str, struct name *np, FILE *fo
if (col) { if (col) {
fwrite(str, sizeof *str, strlen(str), fo); fwrite(str, sizeof *str, strlen(str), fo);
@ -391,7 +380,7 @@
} }
for (; np != NULL; np = np->n_flink) { for (; np != NULL; np = np->n_flink) {
--- tty.c --- tty.c
+++ tty.c 2013-07-02 11:02:18.880440821 +0000 +++ tty.c 2016-04-08 14:47:33.838193954 +0000
@@ -438,6 +438,6 @@ yorn(char *msg) @@ -438,6 +438,6 @@ yorn(char *msg)
do do
cp = readtty(msg, NULL); cp = readtty(msg, NULL);

View File

@ -263,7 +263,7 @@
if (Iflag && ef == NULL) { if (Iflag && ef == NULL) {
--- makeconfig --- makeconfig
+++ makeconfig 2011-05-13 11:28:45.907925652 +0000 +++ makeconfig 2011-05-13 11:28:45.907925652 +0000
@@ -304,23 +304,48 @@ int main(void) @@ -304,23 +304,49 @@ int main(void)
'for socket functionality in libsocket and libnsl' \ 'for socket functionality in libsocket and libnsl' \
'#define HAVE_SOCKETS' '-lsocket -lnsl' '#define HAVE_SOCKETS' '-lsocket -lnsl'
@ -324,6 +324,7 @@
+ <$tmp2.c link_check ipv6 'for IPv6 functionality getnameinfo' '#define HAVE_GETNAMEINFO' + <$tmp2.c link_check ipv6 'for IPv6 functionality getnameinfo' '#define HAVE_GETNAMEINFO'
+echo \ +echo \
+'#if defined(HAVE_GETADDRINFO) && defined(HAVE_GETNAMEINFO) +'#if defined(HAVE_GETADDRINFO) && defined(HAVE_GETNAMEINFO)
+# undef HAVE_IPv6_FUNCS
+# define HAVE_IPv6_FUNCS +# define HAVE_IPv6_FUNCS
+#endif' >>$out +#endif' >>$out

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Apr 8 15:02:17 UTC 2016 - werner@suse.de
- Correct parenthese expansion to fulfill natural order (bnc#974561)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 17 10:05:20 UTC 2015 - werner@suse.de Tue Mar 17 10:05:20 UTC 2015 - werner@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package mailx # spec file for package mailx
# #
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed