don't be crazily strickt on position of '-q' parameter
authorDaniel Golle <daniel@makrotopia.org>
Fri, 8 Jun 2018 00:07:46 +0000 (02:07 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 14 Jun 2018 16:51:22 +0000 (18:51 +0200)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This work was sponsored by WIO (wiowireless.com)

ucert.c

diff --git a/ucert.c b/ucert.c
index 49d39e9fa58c226aad93d1d48694609b86145b48..32fa523ff46910c204c2e8eea5292a239b57a5ea 100644 (file)
--- a/ucert.c
+++ b/ucert.c
@@ -676,7 +676,7 @@ int main(int argc, char *argv[]) {
                        pubkeydir = optarg;
                        break;
                case 'q':
-                       if (quiet || cmd == CMD_NONE)
+                       if (quiet)
                                return usage(argv[0]);
                        quiet = true;
                        break;