From owner-cvs-src@FreeBSD.ORG Sun Jun 27 06:29: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 8C9BE16A4CF; Sun, 27 Jun 2004 06:29:10 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8225143D2F; Sun, 27 Jun 2004 06:29: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 i5R6T4J4092175; Sun, 27 Jun 2004 06:29:04 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5R6T45X092174; Sun, 27 Jun 2004 06:29:04 GMT (envelope-from kientzle) Message-Id: <200406270629.i5R6T45X092174@repoman.freebsd.org> From: Tim Kientzle Date: Sun, 27 Jun 2004 06:29:04 +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 matching.c 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, 27 Jun 2004 06:29:10 -0000 kientzle 2004-06-27 06:29:04 UTC FreeBSD src repository Modified files: usr.bin/tar bsdtar.c bsdtar.h matching.c read.c util.c write.c Log: Augment the -T handling: * Add --null option (sort #defines here) * Add process_lines function to util.c that reads newline-terminated or null-terminated lines (with self-sizing buffers, etc) and iteratively invokes a provided function. Use this to dramatically simplify: -T handling for -c, --exclude-from-file, and --include-from-file. * Add -T handling to -x (via include_from_file) Hopefully, this will fix the openoffice port and a couple of others that rely on -T and --null. Revision Changes Path 1.33 +16 -16 src/usr.bin/tar/bsdtar.c 1.13 +9 -3 src/usr.bin/tar/bsdtar.h 1.6 +16 -40 src/usr.bin/tar/matching.c 1.12 +3 -0 src/usr.bin/tar/read.c 1.9 +86 -0 src/usr.bin/tar/util.c 1.26 +31 -39 src/usr.bin/tar/write.c