From owner-cvs-src@FreeBSD.ORG Sat Aug 25 04:19:56 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C613216A419; Sat, 25 Aug 2007 04:19:56 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A027613C469; Sat, 25 Aug 2007 04:19:56 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l7P4JuQH086942; Sat, 25 Aug 2007 04:19:56 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l7P4JuMM086941; Sat, 25 Aug 2007 04:19:56 GMT (envelope-from kientzle) Message-Id: <200708250419.l7P4JuMM086941@repoman.freebsd.org> From: Tim Kientzle Date: Sat, 25 Aug 2007 04:19:55 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/usr.bin/tar bsdtar.h util.c write.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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, 25 Aug 2007 04:19:57 -0000 kientzle 2007-08-25 04:19:55 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) usr.bin/tar bsdtar.h util.c write.c Log: MFC generic path comparisons. There was some old code to ignore leading "./" that was there to allow us to compare path names with strcmp(). Comparing pathnames syntactically is a bit more complex than that, so encapsulate it in a new utility function and use that instead. Revision Changes Path 1.23.2.4 +1 -0 src/usr.bin/tar/bsdtar.h 1.13.2.3 +39 -4 src/usr.bin/tar/util.c 1.41.2.10 +1 -4 src/usr.bin/tar/write.c