From owner-cvs-src@FreeBSD.ORG Sat Sep 4 21:49:42 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B82916A4CE; Sat, 4 Sep 2004 21:49:42 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92A0743D39; Sat, 4 Sep 2004 21:49:42 +0000 (GMT) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i84LngUN096670; Sat, 4 Sep 2004 21:49:42 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i84LngeY096669; Sat, 4 Sep 2004 21:49:42 GMT (envelope-from kientzle) Message-Id: <200409042149.i84LngeY096669@repoman.freebsd.org> From: Tim Kientzle Date: Sat, 4 Sep 2004 21:49:42 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libarchive archive_read_support_format_tar.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2004 21:49:42 -0000 kientzle 2004-09-04 21:49:42 UTC FreeBSD src repository Modified files: lib/libarchive archive_read_support_format_tar.c Log: Some old tar archives rely on "regular-file-plus-trailing-slash" to denote a directory. Unfortunately, in the presence of GNU or POSIX extensions, this code was checking the truncated filename stored in the regular header rather than the full filename stored in the extended attribute. As a result, long filenames with '/' in just the right position would trigger this check and be erroneously marked as directories. Move the check so it only considers the full filename. Note: the check can't simply be disabled for archives that contain these extensions because there are some very broken archivers out there. Thanks to: Will Froning MFC after: 3 days Revision Changes Path 1.27 +22 -12 src/lib/libarchive/archive_read_support_format_tar.c