apm should not silently ignore bonus args.
Index: apm.c
===================================================================
RCS file: /cvs/src/usr.sbin/apm/apm.c,v
retrieving revision 1.34
diff -u -p -r1.34 apm.c
--- apm.c 14 Aug 2018 06:38:33 -0000 1.34
+++ apm.c 28 Feb 2019 16:59:41 -0000
@@ -242,6 +242,10 @@ main(int argc, char *argv[])
usage();
}
}
+ argc -= optind;
+ argv += optind;
+ if (argc)
+ usage();
fd = open_socket(sockname);
