svn commit: r194320 - in stable/6/usr.sbin/pkg_install: . info

Ed Maste emaste at FreeBSD.org
Wed Jun 17 02:52:36 UTC 2009


Author: emaste
Date: Wed Jun 17 02:52:35 2009
New Revision: 194320
URL: http://svn.freebsd.org/changeset/base/194320

Log:
  MFC r193273 by jilles:
  
    Fix segfault when giving invalid long option to pkg_info.
  
  PR: bin/133473
  Submitted by: Rafal Grodzinski

Modified:
  stable/6/usr.sbin/pkg_install/   (props changed)
  stable/6/usr.sbin/pkg_install/info/main.c

Modified: stable/6/usr.sbin/pkg_install/info/main.c
==============================================================================
--- stable/6/usr.sbin/pkg_install/info/main.c	Wed Jun 17 02:51:16 2009	(r194319)
+++ stable/6/usr.sbin/pkg_install/info/main.c	Wed Jun 17 02:52:35 2009	(r194320)
@@ -58,6 +58,7 @@ static struct option longopts[] = {
 	{ "verbose",	no_argument,		NULL,		'v' },
 	{ "version",	no_argument,		NULL,		'P' },
 	{ "which",	required_argument,	NULL,		'W' },
+	{ NULL,		0,			NULL,		0 }
 };
 
 int


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