Subject: bin/18912: pkg_info has a few problems using pax-as-tar
To: None <gnats-bugs@gnats.netbsd.org>
From: None <grant@netbsd.org>
List: netbsd-bugs
Date: 11/04/2002 16:56:34
>Number: 18912
>Category: bin
>Synopsis: pkg_info has a few problems using pax-as-tar
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 03 20:56:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: grant beattie
>Release: NetBSD 1.6K
>Organization:
>Environment:
System: NetBSD mofo 1.6K NetBSD 1.6K (MOFO) #0: Sun Nov 3 22:34:54 EST 2002 grant@mofo:/data1/netbsd/current/src/sys/arch/i386/compile/MOFO i386
Architecture: i386
Machine: i386
>Description:
running pkg_info on a binary pkg should return some information about the
package.
pkg_info calls tar with the 'p' flag regardless of the effective uid, pax
attempts to set uid/gid and fails:
% pkg_info xmms-sid-0.7.2.tgz
tar: Unable to set file uid/gid of +CONTENTS <Operation not permitted>
tar: Unable to set file uid/gid of +COMMENT <Operation not permitted>
tar: Unable to set file uid/gid of +DESC <Operation not permitted>
tar: Unable to set file uid/gid of +MTREE_DIRS <Operation not permitted>
tar: Unable to set file uid/gid of +BUILD_VERSION <Operation not permitted>
tar: Unable to set file uid/gid of +BUILD_INFO <Operation not permitted>
tar: Unable to set file uid/gid of +SIZE_PKG <Operation not permitted>
tar: Unable to set file uid/gid of +SIZE_ALL <Operation not permitted>
pkg_info: tar extract of /vnd/packages/All/xmms-sid-0.7.2.tgz failed!
pkg_info: error during unpacking, no info for 'xmms-sid-0.7.2.tgz' available
>How-To-Repeat:
pkg_info filename as non-root.
>Fix:
pkg_* should be made to understand pax exit codes, as this should
not be fatal.
cgd suggested pax should only print a single warning right at the end
if it fails to preserve permissions.
>Release-Note:
>Audit-Trail:
>Unformatted: