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

25-Fix-confusing-error.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
From: Robert Luberda <robert@debian.org>
Date: Sun, 6 Oct 2013 10:30:36 +0200
Subject: 25 Fix confusing error

Fix an error message shown when -s, -c, or -b is used without -t
to be less confusing for users (closes: #327809).
---
 main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.c b/main.c
index 31fd560..92bff1a 100644
--- a/main.c
+++ b/main.c
@@ -240,7 +240,7 @@ main(int argc, char **argv)
 	 * Check for inconsistent arguments.
 	 */
 	if (to == NULL && (subject != NULL || cc != NULL || bcc != NULL))
-		errx(1, "You must specify direct recipients with -s, -c, or -b");
+		errx(1, "You must specify direct recipients with -t when -s, -c, or -b is used");
 	/*
 	 * Block SIGINT except where we install an explicit handler for it.
 	 */