svn commit: r247677 - stable/9/usr.bin/dc

Glen Barber gjb at FreeBSD.org
Sun Mar 3 00:37:35 UTC 2013


Author: gjb (doc,ports committer)
Date: Sun Mar  3 00:37:34 2013
New Revision: 247677
URL: http://svnweb.freebsd.org/changeset/base/247677

Log:
  MFC r247441:
  Properly handle '-h' argument.
  
  PR:		176332

Modified:
  stable/9/usr.bin/dc/dc.c
Directory Properties:
  stable/9/usr.bin/dc/   (props changed)

Modified: stable/9/usr.bin/dc/dc.c
==============================================================================
--- stable/9/usr.bin/dc/dc.c	Sat Mar  2 23:40:42 2013	(r247676)
+++ stable/9/usr.bin/dc/dc.c	Sun Mar  3 00:37:34 2013	(r247677)
@@ -84,7 +84,7 @@ main(int argc, char *argv[])
 	bool extended_regs = false, preproc_done = false;
 
 	/* accept and ignore a single dash to be 4.4BSD dc(1) compatible */
-	while ((ch = getopt_long(argc, argv, "e:f:Vx", long_options, NULL)) != -1) {
+	while ((ch = getopt_long(argc, argv, "e:f:hVx", long_options, NULL)) != -1) {
 		switch (ch) {
 		case 'e':
 			if (!preproc_done)


More information about the svn-src-stable-9 mailing list