From nobody@FreeBSD.org  Fri Jul 27 03:15:04 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 393F137B401
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Jul 2001 03:15:04 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f6RAF4A69464;
	Fri, 27 Jul 2001 03:15:04 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200107271015.f6RAF4A69464@freefall.freebsd.org>
Date: Fri, 27 Jul 2001 03:15:04 -0700 (PDT)
From: David Jones <djones@zoonami.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pkg_info -f fails with "unknown command type 16 (preserve)"
X-Send-Pr-Version: www-1.0

>Number:         29262
>Category:       bin
>Synopsis:       pkg_info -f fails with "unknown command type 16 (preserve)"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kris
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 27 03:20:01 PDT 2001
>Closed-Date:    Mon Aug 6 13:09:39 PDT 2001
>Last-Modified:  Mon Aug 06 13:09:52 PDT 2001
>Originator:     David Jones
>Release:        4.3-RELEASE
>Organization:
Zoonami
>Environment:
FreeBSD gateway.zoonami.com 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001     jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC  i386
>Description:
Downloaded a patch:
# fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/packages/SA-01:48/security-patch-tcpdump-nossl-01.48.tgz

Then:
# pkg_info -f security-patch-telnetd-crypto-01.49.tgz

Gives some output ending with:
        CWD to /
        SRCDIR to /mnt/jail-4.3
pkg_info: show_plist: unknown command type 16 (preserve)

Which doesn't seem right to me.

>How-To-Repeat:
as above
>Fix:
Sorry.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->kris 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Jul 28 00:56:43 PDT 2001 
Responsible-Changed-Why:  
I'll commit my patch 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29262 

From: Kris Kennaway <kris@obsecurity.org>
To: David Jones <djones@zoonami.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/29262: pkg_info -f fails with "unknown command type 16 (preserve)"
Date: Sat, 28 Jul 2001 00:56:37 -0700

 --LpQ9ahxlCli8rRTG
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Fri, Jul 27, 2001 at 03:15:04AM -0700, David Jones wrote:
 
 > Then:
 > # pkg_info -f security-patch-telnetd-crypto-01.49.tgz
 >=20
 > Gives some output ending with:
 >         CWD to /
 >         SRCDIR to /mnt/jail-4.3
 > pkg_info: show_plist: unknown command type 16 (preserve)
 >=20
 > Which doesn't seem right to me.
 
 Here's a patch which I'll commit over the weekend.
 
 Kris
 
 Index: show.c
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /home/ncvs/src/usr.sbin/pkg_install/info/show.c,v
 retrieving revision 1.21
 diff -u -r1.21 show.c
 --- show.c	2001/03/23 18:45:24	1.21
 +++ show.c	2001/07/28 07:55:28
 @@ -163,6 +163,10 @@
  	    printf(Quiet ? "@dirrm %s\n" : "\tDeinstall directory remove: %s\n", =
 p->name);
  	    break;
 =20
 +	case PLIST_OPTION:
 +	    printf(Quiet ? "@option %s\n" : "\tOption \"%s\" controlling package =
 installation behaviour; see pkg_create(1)\n", p->name);
 +	    break;
 +
  	default:
  	    cleanup(0);
  	    errx(2, __FUNCTION__ ": unknown command type %d (%s)", p->type, p->na=
 me);
 
 --LpQ9ahxlCli8rRTG
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.6 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQE7YnA0Wry0BWjoQKURAsobAJ9JunOFv+L3cy8ct4F7y9No0QQL+gCfdU/V
 6jyfpZF46ahos9L/pNgi5sQ=
 =SsHy
 -----END PGP SIGNATURE-----
 
 --LpQ9ahxlCli8rRTG--
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Mon Aug 6 13:09:39 PDT 2001 
State-Changed-Why:  
Committed to -current, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29262 
>Unformatted:
