0ad967d243
Pesign is a tool to sign PE-COFF binaries which is the format used in UEFI. The UEFI loader, shim, needs pesign for package building. OBS-URL: https://build.opensuse.org/request/show/148393 OBS-URL: https://build.opensuse.org/package/show/Base:System/pesign?expand=0&rev=1
27 lines
648 B
Diff
27 lines
648 B
Diff
diff --git a/src/client.c b/src/client.c
|
|
index 1ec582b..dcc5257 100644
|
|
--- a/src/client.c
|
|
+++ b/src/client.c
|
|
@@ -435,7 +435,7 @@ main(int argc, char *argv[])
|
|
char *certname = NULL;
|
|
poptContext optCon;
|
|
int rc;
|
|
- int action;
|
|
+ int action = 0;
|
|
char *infile = NULL;
|
|
char *outfile = NULL;
|
|
char *exportfile = NULL;
|
|
@@ -500,6 +500,12 @@ main(int argc, char *argv[])
|
|
exit(1);
|
|
}
|
|
|
|
+ if (action == NO_FLAGS) {
|
|
+ poptPrintUsage(optCon, stdout, 0);
|
|
+ poptFreeContext(optCon);
|
|
+ exit(0);
|
|
+ }
|
|
+
|
|
if (action & SIGN_BINARY && (!outfile && !exportfile)) {
|
|
fprintf(stderr, "pesign-client: neither --outfile nor --export "
|
|
"specified\n");
|