From owner-cvs-all@FreeBSD.ORG Sat Apr 14 08:20:32 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0368716A401; Sat, 14 Apr 2007 08:20:32 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id ECD8B13C457; Sat, 14 Apr 2007 08:20:31 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l3E8KVGn092405; Sat, 14 Apr 2007 08:20:31 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l3E8KVqP092404; Sat, 14 Apr 2007 08:20:31 GMT (envelope-from kientzle) Message-Id: <200704140820.l3E8KVqP092404@repoman.freebsd.org> From: Tim Kientzle Date: Sat, 14 Apr 2007 08:20:31 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libarchive Makefile archive_write_set_format_pax.c archive_write_set_format_ustar.c src/lib/libarchive/test Makefile test_tar_filenames.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Apr 2007 08:20:32 -0000 kientzle 2007-04-14 08:20:31 UTC FreeBSD src repository Modified files: lib/libarchive Makefile archive_write_set_format_pax.c archive_write_set_format_ustar.c lib/libarchive/test Makefile Added files: lib/libarchive/test test_tar_filenames.c Log: Conventionally, tar archives have always included a trailing '/' for directories. bsdtar used to add this, but that recently got lost somehow. So now I'm adding it back in libarchive. The only odd part of doing this in libarchive: Adding a directory to a tar archive and then reading it back again can yield a different name. Add a test case to exercise some boundary conditions with tar filenames and ensure that trailing slashes are added to dir names only as necessary. Thanks to: Oliver Lehmann for bringing this regression to my attention. Revision Changes Path 1.66 +1 -1 src/lib/libarchive/Makefile 1.40 +87 -65 src/lib/libarchive/archive_write_set_format_pax.c 1.22 +16 -8 src/lib/libarchive/archive_write_set_format_ustar.c 1.4 +1 -0 src/lib/libarchive/test/Makefile 1.1 +156 -0 src/lib/libarchive/test/test_tar_filenames.c (new)