Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jun 2009 22:05:47 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r193776 - in stable/7/usr.sbin/pkg_install: . info
Message-ID:  <200906082205.n58M5lTc045758@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Mon Jun  8 22:05:47 2009
New Revision: 193776
URL: http://svn.freebsd.org/changeset/base/193776

Log:
  MFC r193273: Fix segfault when giving invalid long option to pkg_info.
  
  PR:		bin/133473
  Submitted by:	Rafal Grodzinski
  Approved by:	ed (mentor)

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

Modified: stable/7/usr.sbin/pkg_install/info/main.c
==============================================================================
--- stable/7/usr.sbin/pkg_install/info/main.c	Mon Jun  8 22:03:37 2009	(r193775)
+++ stable/7/usr.sbin/pkg_install/info/main.c	Mon Jun  8 22:05:47 2009	(r193776)
@@ -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



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