From owner-cvs-all@FreeBSD.ORG Mon Jun 7 04:10:44 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22DD216A4CE; Mon, 7 Jun 2004 04:10:44 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0515943D48; Sun, 6 Jun 2004 21:10:44 -0700 (PDT) (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 i574Ahus072215; Mon, 7 Jun 2004 04:10:43 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i574Ah23072214; Mon, 7 Jun 2004 04:10:43 GMT (envelope-from kientzle) Message-Id: <200406070410.i574Ah23072214@repoman.freebsd.org> From: Tim Kientzle Date: Mon, 7 Jun 2004 04:10:43 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/tar read.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 07 Jun 2004 04:10:44 -0000 kientzle 2004-06-07 04:10:43 UTC FreeBSD src repository Modified files: usr.bin/tar read.c Log: Fix the symlink-detection code. Don't squawk if we're just replacing an existing symlink (as might happen if you extract an archive twice). Also, if we remove the offending link, then we've removed the problem and can safely go forward with the extraction. Pointed out by: print/adobe-cmaps port (whose distfile has duplicate entries for the same symlinks) Thanks to: Kris Kennaway (for using ports as a testbed for bsdtar) Revision Changes Path 1.11 +22 -6 src/usr.bin/tar/read.c