Or simply check for `show' and `test'.

Index: pfctl.c
===================================================================
RCS file: /cvs/src/sbin/pfctl/pfctl.c,v
retrieving revision 1.355
diff -u -p -r1.355 pfctl.c
--- pfctl.c     10 Jul 2018 09:30:49 -0000      1.355
+++ pfctl.c     19 Jul 2018 23:06:02 -0000
@@ -2491,7 +2491,7 @@ main(int argc, char *argv[])
                argc -= optind;
                argv += optind;
                ch = *tblcmdopt;
-               mode = strchr("acdefkrz", ch) ? O_RDWR : O_RDONLY;
+               mode = strchr("st", ch) ? O_RDONLY : O_RDWR;
        } else if (argc != optind) {
                warnx("unknown command line argument: %s ...", argv[optind]);
                usage();

Reply via email to