Blame SOURCES/0002-Fix-command-line-parsing.patch

793dd5
From 5be0515dee24308fd7e270bf2e0fb5e5a7a78f32 Mon Sep 17 00:00:00 2001
793dd5
From: Julien Cristau <jcristau@debian.org>
793dd5
Date: Thu, 9 Jun 2016 14:30:37 +0200
793dd5
Subject: [PATCH 02/29] Fix command line parsing
793dd5
793dd5
The gettext translation domain should be passed as .arg, not .descrip,
793dd5
otherwise popt won't process any of the command line options (it stops
793dd5
looping over the struct poptOption array when an entry has unset
793dd5
longName, shortName and arg).
793dd5
793dd5
Signed-off-by: Julien Cristau <jcristau@debian.org>
793dd5
---
793dd5
 src/client.c     | 2 +-
793dd5
 src/efikeygen.c  | 2 +-
793dd5
 src/efisiglist.c | 2 +-
793dd5
 src/pesigcheck.c | 2 +-
793dd5
 4 files changed, 4 insertions(+), 4 deletions(-)
793dd5
793dd5
diff --git a/src/client.c b/src/client.c
793dd5
index 028419f..575c873 100644
793dd5
--- a/src/client.c
793dd5
+++ b/src/client.c
793dd5
@@ -555,7 +555,7 @@ main(int argc, char *argv[])
793dd5
 
793dd5
 	struct poptOption options[] = {
793dd5
 		{.argInfo = POPT_ARG_INTL_DOMAIN,
793dd5
-		 .descrip = "pesign" },
793dd5
+		 .arg = "pesign" },
793dd5
 		{.longName = "token",
793dd5
 		 .shortName = 't',
793dd5
 		 .argInfo = POPT_ARG_STRING|POPT_ARGFLAG_SHOW_DEFAULT,
793dd5
diff --git a/src/efikeygen.c b/src/efikeygen.c
793dd5
index 6278849..8a515a5 100644
793dd5
--- a/src/efikeygen.c
793dd5
+++ b/src/efikeygen.c
793dd5
@@ -486,7 +486,7 @@ int main(int argc, char *argv[])
793dd5
 	poptContext optCon;
793dd5
 	struct poptOption options[] = {
793dd5
 		{.argInfo = POPT_ARG_INTL_DOMAIN,
793dd5
-		 .descrip = "pesign" },
793dd5
+		 .arg = "pesign" },
793dd5
 		/* global nss-ish things */
793dd5
 		{.longName = "dbdir",
793dd5
 		 .shortName = 'd',
793dd5
diff --git a/src/efisiglist.c b/src/efisiglist.c
793dd5
index cd3f1ae..40d6a93 100644
793dd5
--- a/src/efisiglist.c
793dd5
+++ b/src/efisiglist.c
793dd5
@@ -126,7 +126,7 @@ main(int argc, char *argv[])
793dd5
 
793dd5
 	struct poptOption options[] = {
793dd5
 		{.argInfo = POPT_ARG_INTL_DOMAIN,
793dd5
-		 .descrip = "pesign" },
793dd5
+		 .arg = "pesign" },
793dd5
 		{.longName = "infile",
793dd5
 		 .shortName = 'i',
793dd5
 		 .argInfo = POPT_ARG_STRING,
793dd5
diff --git a/src/pesigcheck.c b/src/pesigcheck.c
793dd5
index 1328fe9..0d49c1a 100644
793dd5
--- a/src/pesigcheck.c
793dd5
+++ b/src/pesigcheck.c
793dd5
@@ -214,7 +214,7 @@ main(int argc, char *argv[])
793dd5
 	poptContext optCon;
793dd5
 	struct poptOption options[] = {
793dd5
 		{.argInfo = POPT_ARG_INTL_DOMAIN,
793dd5
-		 .descrip = "pesign" },
793dd5
+		 .arg = "pesign" },
793dd5
 		{.longName = "dbfile",
793dd5
 		 .shortName = 'D',
793dd5
 		 .argInfo = POPT_ARG_CALLBACK|POPT_CBFLAG_POST,
793dd5
-- 
793dd5
2.13.4
793dd5