diff options
Diffstat (limited to 'meta/recipes-extended/mailx/files/0011-outof-Introduce-expandaddr-flag.patch')
-rw-r--r-- | meta/recipes-extended/mailx/files/0011-outof-Introduce-expandaddr-flag.patch | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/meta/recipes-extended/mailx/files/0011-outof-Introduce-expandaddr-flag.patch b/meta/recipes-extended/mailx/files/0011-outof-Introduce-expandaddr-flag.patch new file mode 100644 index 0000000000..fdce13f202 --- /dev/null +++ b/meta/recipes-extended/mailx/files/0011-outof-Introduce-expandaddr-flag.patch | |||
@@ -0,0 +1,70 @@ | |||
1 | From 9984ae5cb0ea0d61df1612b06952a61323c083d9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Florian Weimer <fweimer@redhat.com> | ||
3 | Date: Mon, 17 Nov 2014 11:13:38 +0100 | ||
4 | Subject: [PATCH 1/4] outof: Introduce expandaddr flag | ||
5 | |||
6 | Document that address expansion is disabled unless the expandaddr | ||
7 | binary option is set. | ||
8 | |||
9 | This has been assigned CVE-2014-7844 for BSD mailx, but it is not | ||
10 | a vulnerability in Heirloom mailx because this feature was documented. | ||
11 | |||
12 | This patch is taken from | ||
13 | ftp://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_12.5-5.debian.tar.xz | ||
14 | |||
15 | Upstream-status: Inappropriate [upstream is dead] | ||
16 | --- | ||
17 | mailx.1 | 14 ++++++++++++++ | ||
18 | names.c | 3 +++ | ||
19 | 2 files changed, 17 insertions(+) | ||
20 | |||
21 | diff --git a/mailx.1 b/mailx.1 | ||
22 | index 70a7859..22a171b 100644 | ||
23 | --- a/mailx.1 | ||
24 | +++ b/mailx.1 | ||
25 | @@ -656,6 +656,14 @@ but any reply returned to the machine | ||
26 | will have the system wide alias expanded | ||
27 | as all mail goes through sendmail. | ||
28 | .SS "Recipient address specifications" | ||
29 | +If the | ||
30 | +.I expandaddr | ||
31 | +option is not set (the default), recipient addresses must be names of | ||
32 | +local mailboxes or Internet mail addresses. | ||
33 | +.PP | ||
34 | +If the | ||
35 | +.I expandaddr | ||
36 | +option is set, the following rules apply: | ||
37 | When an address is used to name a recipient | ||
38 | (in any of To, Cc, or Bcc), | ||
39 | names of local mail folders | ||
40 | @@ -2391,6 +2399,12 @@ and exits immediately. | ||
41 | If this option is set, | ||
42 | \fImailx\fR starts even with an empty mailbox. | ||
43 | .TP | ||
44 | +.B expandaddr | ||
45 | +Causes | ||
46 | +.I mailx | ||
47 | +to expand message recipient addresses, as explained in the section, | ||
48 | +Recipient address specifications. | ||
49 | +.TP | ||
50 | .B flipr | ||
51 | Exchanges the | ||
52 | .I Respond | ||
53 | diff --git a/names.c b/names.c | ||
54 | index 66e976b..c69560f 100644 | ||
55 | --- a/names.c | ||
56 | +++ b/names.c | ||
57 | @@ -268,6 +268,9 @@ outof(struct name *names, FILE *fo, struct header *hp) | ||
58 | FILE *fout, *fin; | ||
59 | int ispipe; | ||
60 | |||
61 | + if (value("expandaddr") == NULL) | ||
62 | + return names; | ||
63 | + | ||
64 | top = names; | ||
65 | np = names; | ||
66 | time(&now); | ||
67 | -- | ||
68 | 1.9.3 | ||
69 | |||
70 | |||