Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Nov 2017 13:55:10 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326057 - head/usr.sbin/vidcontrol
Message-ID:  <201711211355.vALDtA8c090630@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711211355.vALDtA8c090630>