b58922c
From abe7981ba049b23ae9c42da92559576c6e0cc53b Mon Sep 17 00:00:00 2001
b58922c
From: Peter Jones <pjones@redhat.com>
b58922c
Date: Fri, 19 Oct 2012 10:07:40 -0400
11a11c6
Subject: [PATCH 37/42] Fix command line checking for -s.
b58922c
b58922c
Accidentally applied when not using -s.  Woops.
b58922c
b58922c
Signed-off-by: Peter Jones <pjones@redhat.com>
b58922c
---
b58922c
 src/client.c | 2 +-
b58922c
 1 file changed, 1 insertion(+), 1 deletion(-)
b58922c
b58922c
diff --git a/src/client.c b/src/client.c
b58922c
index 5e5399d..777197a 100644
b58922c
--- a/src/client.c
b58922c
+++ b/src/client.c
b58922c
@@ -496,7 +496,7 @@ main(int argc, char *argv[])
b58922c
 		exit(1);
b58922c
 	}
b58922c
 
b58922c
-	if (!outfile && !exportfile) {
b58922c
+	if (action & SIGN_BINARY && (!outfile && !exportfile)) {
b58922c
 		fprintf(stderr, "pesign-client: neither --outfile nor --export "
b58922c
 			"specified\n");
b58922c
 		exit(1);
b58922c
-- 
b58922c
1.7.12.1
b58922c