svn commit: r326057 - head/usr.sbin/vidcontrol

Ed Maste emaste at FreeBSD.org
Tue Nov 21 13:55:11 UTC 2017


Author: emaste
Date: Tue Nov 21 13:55:10 2017
New Revision: 326057
URL: https://svnweb.freebsd.org/changeset/base/326057

Log:
  vidcontrol: correct history size error message
  
  `vidcontrol -h 0` is acceptable, so be explicit that it's less than zero
  that is not allowed.
  
  Reported by:	Siva Mahadevan
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/usr.sbin/vidcontrol/vidcontrol.c

Modified: head/usr.sbin/vidcontrol/vidcontrol.c
==============================================================================
--- head/usr.sbin/vidcontrol/vidcontrol.c	Tue Nov 21 13:19:38 2017	(r326056)
+++ head/usr.sbin/vidcontrol/vidcontrol.c	Tue Nov 21 13:55:10 2017	(r326057)
@@ -1359,7 +1359,7 @@ set_history(char *opt)
 
 	if ((*opt == '\0') || size < 0) {
 		revert();
-		errx(1, "argument must be a positive number");
+		errx(1, "argument must not be less than zero");
 	}
 
 	if (ioctl(0, CONS_HISTORY, &size) == -1) {


More information about the svn-src-head mailing list