From sec@quit.42.org  Thu Oct 16 15:31:03 1997
Received: from quit.42.org (quit.42.org [192.68.213.142])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA28863
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Oct 1997 15:30:50 -0700 (PDT)
          (envelope-from sec@quit.42.org)
Received: (from sec@localhost)
	by quit.42.org (8.8.7/8.8.5) id AAA11452;
	Fri, 17 Oct 1997 00:30:18 +0200 (CEST)
Message-Id: <199710162230.AAA11452@quit.42.org>
Date: Fri, 17 Oct 1997 00:30:18 +0200 (CEST)
From: Stefan `Sec` Zehl <sec@quit.42.org>
Reply-To: sec@quit.42.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: pkg_info stops on "@unexec" in PLIST
X-Send-Pr-Version: 3.2

>Number:         4784
>Category:       bin
>Synopsis:       pkg_info stops on "@unexec" in PLIST
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 16 15:40:01 PDT 1997
>Closed-Date:    Fri Oct 17 22:42:28 PDT 1997
>Last-Modified:  Fri Oct 17 22:42:55 PDT 1997
>Originator:     Stefan `Sec` Zehl
>Release:        FreeBSD 2.2-STABLE i386
>Organization:
>Environment:

Version "$Id: show.c,v 1.11 1997/10/08 07:47:38 charnier Exp $"

>Description:

I am submitting this for a friend:

| Problem ist, dass pkg_info abbricht, wenn irgendwo ein @unexec in der
| PLIST eines Packages drin steckt. Eben dieses behebt der Patch. 

The problem is that pkg_info stops, if there is an @unexec in the PLIST
file of an Package. The attached patch fixes that.

>How-To-Repeat:

pkg_info -v

>Fix:

***************
*** 103,108 ****
--- 108,117 ----
  
  	case PLIST_CMD:
  	    printf(Quiet ? "@exec %s\n" : "\tEXEC '%s'\n", p->name);
+ 	    break;
+ 
+ 	case PLIST_UNEXEC:
+ 	    printf(Quiet ? "@unexec %s\n" : "\tUNEXEC '%s'\n", p->name);
  	    break;
  
  	case PLIST_CHMOD:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Fri Oct 17 22:42:28 PDT 1997 
State-Changed-Why:  
Supplied patch applied, thanks! 
>Unformatted:
