20 lines
404 B
Diff
20 lines
404 B
Diff
---
|
|
pgpewrap.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
--- pgpewrap.c
|
|
+++ pgpewrap.c 2017-04-28 12:46:25.911731441 +0000
|
|
@@ -61,6 +61,12 @@ int main(int argc, char **argv)
|
|
}
|
|
*opt = NULL;
|
|
|
|
+ if (opts[0] == NULL)
|
|
+ {
|
|
+ fprintf(stderr, "Command line usage: %s [flags] -- prefix [recipients]\n", argv[0]);
|
|
+ return 1;
|
|
+ }
|
|
+
|
|
execvp(opts[0], opts);
|
|
perror(argv[0]);
|
|
return 2;
|