NetBSD Problem Report #44303
From www@NetBSD.org Fri Dec 31 22:07:44 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id C1A9A63B89F
for <gnats-bugs@gnats.NetBSD.org>; Fri, 31 Dec 2010 22:07:43 +0000 (UTC)
Message-Id: <20101231220743.6C18C63B87A@www.NetBSD.org>
Date: Fri, 31 Dec 2010 22:07:43 +0000 (UTC)
From: m.ramakers@gmail.com
Reply-To: m.ramakers@gmail.com
To: gnats-bugs@NetBSD.org
Subject: /bin/cpio doesn't accept combination of options '-i -t'
X-Send-Pr-Version: www-1.0
>Number: 44303
>Category: bin
>Synopsis: /bin/cpio doesn't accept combination of options '-i -t'
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 31 22:10:00 +0000 2010
>Originator: Michai Ramakers
>Release: 5.1
>Organization:
>Environment:
NetBSD multi 5.1 NetBSD 5.1 (XEN3PAE_DOM0) #0: Sun Nov 7 15:07:49 UTC 2010 builds@b6.netbsd.org:/home/builds/ab/netbsd-5-1-RELEASE/i386/201011061943Z-obj/home/builds/ab/netbsd-5-1-RELEASE/src/sys/arch/i386/compile/XEN3PAE_DOM0 i386
>Description:
/bin/cpio doesn't accept a combination of -i (extract) and -t (list) options, although cpio(1) suggests -t is only valid in combination with -i.
>How-To-Repeat:
$ mkdir test
$ cd test
$ echo >foo
$ echo foo | cpio -o > arch
$ cpio -i -t < arch
usage: cpio -o [-aABcLvzZ] [-C bytes] [-F archive] [-H format] [-O archive]
< name-list [> archive]
cpio -i [-bBcdfmrsStuvzZ6] [-C bytes] [-E file] [-F archive] [-H format]
[-I archive] [pattern ...] [< archive]
cpio -p [-adlLmuv] destination-directory < name-list
$ cpio -t < arch
foo
$
>Fix:
quickfix: using -t in isolation works, e.g. 'cpio -t < arch'.
This is apparently fixed in src/bin/pax/options.c 1.108:
Do not throw a usage message for -i followed by -t
since 'cpio -itv' is a valid command.
...but only fixes up to and including 1.106 are included for netbsd-5 or netbsd-5-1-RELEASE.
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.