From owner-cvs-src@FreeBSD.ORG Sun Aug 8 05:50:10 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 B3AB416A4CE; Sun, 8 Aug 2004 05:50:10 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94A9C43D48; Sun, 8 Aug 2004 05:50:10 +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 i785oAIK091901; Sun, 8 Aug 2004 05:50:10 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i785oAHK091900; Sun, 8 Aug 2004 05:50:10 GMT (envelope-from kientzle) Message-Id: <200408080550.i785oAHK091900@repoman.freebsd.org> From: Tim Kientzle Date: Sun, 8 Aug 2004 05:50:10 +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 bsdtar.c bsdtar.h read.c util.c write.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: Sun, 08 Aug 2004 05:50:10 -0000 kientzle 2004-08-08 05:50:10 UTC FreeBSD src repository Modified files: usr.bin/tar bsdtar.c bsdtar.h read.c util.c write.c Log: Move the smart chdir logic into a couple of utility functions in util.c. Then use them to provide consistent -C support throughout the program. Thanks to: Christoph Mallon Revision Changes Path 1.50 +1 -2 src/usr.bin/tar/bsdtar.c 1.20 +3 -1 src/usr.bin/tar/bsdtar.h 1.19 +1 -4 src/usr.bin/tar/read.c 1.11 +58 -0 src/usr.bin/tar/util.c 1.32 +3 -78 src/usr.bin/tar/write.c