[PATCH 34/65] restore old key behaviour

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri, 9 May 2014 08:49:53 +0000

Signed-off-by: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
---
 ii.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/ii.c b/ii.c
index 2cc17cd..283a415 100644
--- a/ii.c
+++ b/ii.c
_AT_@ -518,7 +518,7 @@ run(int ircfd, char *host) {
 int
 main(int argc, char *argv[]) {
 	struct passwd *spw;
-	char *key = NULL, *fullname = NULL, *host = "", *keyname = "";
+	char *key = NULL, *fullname = NULL, *host = "";
 	char prefix[_POSIX_PATH_MAX], *service = "6667";
 	int ircfd;
 
_AT_@ -547,9 +547,7 @@ main(int argc, char *argv[]) {
 			strlcpy(nick, EARGF(usage()), sizeof(nick));
 			break;
 		case 'k':
-			keyname = EARGF(usage());
-			if(!(key = getenv(keyname)))
-				eprintf("ii: can't get password from $%s\n", keyname);
+			key = getenv(EARGF(usage()));
 			break;
 		case 'f':
 			fullname = EARGF(usage());
-- 
2.4.10
--Multipart=_Mon__9_May_2016_17_21_10_+0200_I.6cpFVydhq75aaE
Content-Type: text/x-diff;
 name="0035-FAQ-example-treat-backslash-normally.patch"
Content-Disposition: attachment;
 filename="0035-FAQ-example-treat-backslash-normally.patch"
Content-Transfer-Encoding: 7bit
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Mon May 09 2016 - 17:24:22 CEST