1
0
forked from pool/mutt
mutt/mutt-1.5.9i-pgpewrap.diff
2017-04-28 14:47:43 +00:00

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;