From owner-freebsd-bugs@FreeBSD.ORG Sun Mar 9 13:20:00 2008 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 EC2381065673 for ; Sun, 9 Mar 2008 13:20:00 +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 C25888FC23 for ; Sun, 9 Mar 2008 13:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m29DK0sI076505 for ; Sun, 9 Mar 2008 13:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m29DK0Gn076504; Sun, 9 Mar 2008 13:20:00 GMT (envelope-from gnats) Resent-Date: Sun, 9 Mar 2008 13:20:00 GMT Resent-Message-Id: <200803091320.m29DK0Gn076504@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, Ighighi Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A3131065672 for ; Sun, 9 Mar 2008 13:12:03 +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 123628FC18 for ; Sun, 9 Mar 2008 13:12:03 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m29D8rlc032307 for ; Sun, 9 Mar 2008 13:08:53 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m29D8rcs032306; Sun, 9 Mar 2008 13:08:53 GMT (envelope-from nobody) Message-Id: <200803091308.m29D8rcs032306@www.freebsd.org> Date: Sun, 9 Mar 2008 13:08:53 GMT From: Ighighi To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/121519: [patch]: gunzip(1) should also support ".tbz" suffix (used by ports' packages) 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: Sun, 09 Mar 2008 13:20:01 -0000 >Number: 121519 >Category: bin >Synopsis: [patch]: gunzip(1) should also support ".tbz" suffix (used by ports' packages) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 09 13:20:00 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Ighighi >Release: 6.3-STABLE >Organization: >Environment: FreeBSD orion 6.3-STABLE FreeBSD 6.3-STABLE #0: Mon Mar 3 04:45:31 VET 2008 root@orion:/usr/obj/usr/src/sys/CUSTOM i386 >Description: BSD gunzip(1) should also support the ".tbz" suffix just as it does with ".tar.bz2" and ".tgz". This is even more relevant because binary packages are available as ".tbz" and no one expects the following error: gunzip: bash.tbz: unknown suffix -- ignored >How-To-Repeat: cd /tmp fetch -a ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/Latest/bash.tbz gunzip bash.tbz >Fix: Attached patch adds support for both ".tbz" & ".tbz2" Patch attached with submission follows: --- src/usr.bin/gzip/gzip.c.orig 2007-08-06 18:50:26.000000000 -0400 +++ src/usr.bin/gzip/gzip.c 2007-08-07 18:21:14.138889830 -0400 @@ -133,6 +133,8 @@ static suffixes_t suffixes[] = { SUFFIX(".tgz", ".tar"), #ifndef NO_BZIP2_SUPPORT SUFFIX(BZ2_SUFFIX, ""), + SUFFIX(".tbz", ".tar"), + SUFFIX(".tbz2", ".tar"), #endif #ifndef NO_COMPRESS_SUPPORT SUFFIX(Z_SUFFIX, ""), >Release-Note: >Audit-Trail: >Unformatted: