Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Aug 2015 15:15:07 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r286291 - stable/10/usr.sbin/vidcontrol
Message-ID:  <201508041515.t74FF7gC055002@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Tue Aug  4 15:15:06 2015
New Revision: 286291
URL: https://svnweb.freebsd.org/changeset/base/286291

Log:
  MFC r281581: vidcontrol: make size argument optional again for syscons
  
  r273544 (MFC in r273921) changed the -f option allow no arguments in vt
  mode (used to reset the font back to the default), but broke the
  optionality of the size argument for syscons. Drop the required argument
  from syscons' optstring for -f so the optional argument handler works
  the same way for both syscons and vt.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/10/usr.sbin/vidcontrol/vidcontrol.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/vidcontrol/vidcontrol.c
==============================================================================
--- stable/10/usr.sbin/vidcontrol/vidcontrol.c	Tue Aug  4 15:04:28 2015	(r286290)
+++ stable/10/usr.sbin/vidcontrol/vidcontrol.c	Tue Aug  4 15:15:06 2015	(r286291)
@@ -1343,7 +1343,7 @@ main(int argc, char **argv)
 	if (vt4_mode)
 		opts = "b:Cc:fg:h:Hi:M:m:pPr:S:s:T:t:x";
 	else
-		opts = "b:Cc:df:g:h:Hi:l:LM:m:pPr:S:s:T:t:x";
+		opts = "b:Cc:dfg:h:Hi:l:LM:m:pPr:S:s:T:t:x";
 
 	while ((opt = getopt(argc, argv, opts)) != -1)
 		switch(opt) {



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