Package: bsd-mailx / 8.1.2-0.20141216cvs-2

27-Fix-getopt-string.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Robert Luberda <robert@debian.org>
Date: Sun, 15 Mar 2015 11:23:01 +0100
Subject: 27 Fix getopt string

Apply patch from upstream [1] to fix -N flag
that does not take an argument (LP: #1411623).

[1] http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/mail/main.c.diff?r1=1.29&r2=1.30&f=h
---
 main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.c b/main.c
index 92bff1a..fa669a1 100644
--- a/main.c
+++ b/main.c
@@ -115,7 +115,7 @@ main(int argc, char **argv)
 	subject = NULL;
 	header = NULL;
 	replyto = NULL;
-	while ((i = getopt(argc, argv, "EIN:a:b:c:defins:u:v")) != -1) {
+	while ((i = getopt(argc, argv, "EINa:b:c:defins:u:v")) != -1) {
 		switch (i) {
 		case 'u':
 			/*