From owner-cvs-all@FreeBSD.ORG Sun Apr 17 17:20:55 2005 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 C270D16A4CE; Sun, 17 Apr 2005 17:20:55 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4AD743D4C; Sun, 17 Apr 2005 17:20:55 +0000 (GMT) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j3HHKtIU084709; Sun, 17 Apr 2005 17:20:55 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j3HHKtnQ084708; Sun, 17 Apr 2005 17:20:55 GMT (envelope-from kientzle) Message-Id: <200504171720.j3HHKtnQ084708@repoman.freebsd.org> From: Tim Kientzle Date: Sun, 17 Apr 2005 17:20:55 +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 Makefile bsdtar.c bsdtar.h read.c util.c write.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: Sun, 17 Apr 2005 17:20:55 -0000 kientzle 2005-04-17 17:20:55 UTC FreeBSD src repository Modified files: usr.bin/tar Makefile bsdtar.c bsdtar.h read.c util.c write.c Log: Support path-rewriting options (including --strip-components) for both extraction and creation. While I'm here, fix a bug reported by Garrett Wollman: when stripping the leading '/' from the path "/", don't produce an entry with an empty name; produce "." instead. Revision Changes Path 1.20 +1 -1 src/usr.bin/tar/Makefile 1.62 +2 -2 src/usr.bin/tar/bsdtar.c 1.23 +1 -0 src/usr.bin/tar/bsdtar.h 1.23 +41 -60 src/usr.bin/tar/read.c 1.12 +53 -0 src/usr.bin/tar/util.c 1.38 +17 -27 src/usr.bin/tar/write.c