From owner-freebsd-bugs@FreeBSD.ORG Fri Jun 18 13:00:15 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27BBE1065674 for ; Fri, 18 Jun 2010 13:00:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DE34D8FC0C for ; Fri, 18 Jun 2010 13:00:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5ID0EuR071198 for ; Fri, 18 Jun 2010 13:00:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5ID0EBf071197; Fri, 18 Jun 2010 13:00:14 GMT (envelope-from gnats) Resent-Date: Fri, 18 Jun 2010 13:00:14 GMT Resent-Message-Id: <201006181300.o5ID0EBf071197@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rudolf Polzer Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41DE6106566C for ; Fri, 18 Jun 2010 12:55:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 30BBC8FC17 for ; Fri, 18 Jun 2010 12:55:14 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o5ICtDwI037890 for ; Fri, 18 Jun 2010 12:55:13 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o5ICtD64037889; Fri, 18 Jun 2010 12:55:13 GMT (envelope-from nobody) Message-Id: <201006181255.o5ICtD64037889@www.freebsd.org> Date: Fri, 18 Jun 2010 12:55:13 GMT From: Rudolf Polzer To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/147969: cpio -i cannot extract tar archives, breaking release builds X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jun 2010 13:00:15 -0000 >Number: 147969 >Category: bin >Synopsis: cpio -i cannot extract tar archives, breaking release builds >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 18 13:00:14 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Rudolf Polzer >Release: 7-STABLE >Organization: Vodafone >Environment: FreeBSD 7.3-STABLE FreeBSD 7.3-STABLE #0: Wed Jun 16 10:14:12 UTC 2010 root@freebsd:/usr/obj/usr/src/sys/GENERIC i386 >Description: cpio (GNU cpio 2.8-FreeBSD) is unable to extract archives made by tar on 7-STABLE. The bug had surfaced before in 8-CURRENT, but got fixed by instead replacing cpio by bsdcpio. See the mailing list discussion on: http://kerneltrap.org/mailarchive/freebsd-current/2008/8/18/2980244/thread This also e.g. surfaces when creating a release CD using release/Makefile, then trying to install from it - the installation routine will bail out on extracting the distributions. >How-To-Repeat: # tar cvf - /var/empty | cpio -i -t tar: Removing leading '/' from member names a var/empty cpio: Malformed number 000555 cpio: Malformed number 00000000166 cpio: Malformed number 11351324133 cpio: Malformed number 000000 cpio: Malformed number 000000 4 blocks (note: the numbers all have a trailing space, causing the "Malformed" output) >Fix: Either: undo the upgrade to cpio 2.8 Or: use bsdcpio in 7-STABLE too Or: change from_ascii() in contrib/cpio/src/copyin.c to accept trailing spaces >Release-Note: >Audit-Trail: >Unformatted: