From owner-freebsd-current@FreeBSD.ORG Sun Oct 24 02:49:39 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3509016A4CE for ; Sun, 24 Oct 2004 02:49:39 +0000 (GMT) Received: from s1.stradamotorsports.com (ip30.gte215.dsl-acs2.sea.iinet.com [209.20.215.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7387743D5A for ; Sun, 24 Oct 2004 02:49:38 +0000 (GMT) (envelope-from jcw@highperformance.net) Received: from [192.168.1.16] ([192.168.1.16])i9O2na8m000922 for ; Sat, 23 Oct 2004 19:49:36 -0700 (PDT) (envelope-from jcw@highperformance.net) Date: Sat, 23 Oct 2004 19:49:38 -0700 From: "Jason C. Wells" To: freebsd-current@freebsd.org Message-ID: <6CCE035F71E8316B634212C5@[192.168.1.16]> X-Mailer: Mulberry/3.1.5 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Spam-Status: No, hits=0.0 required=4.0 tests=none version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: tar dumps core when appending to empty file X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2004 02:49:39 -0000 What I am trying to do is: $ touch Makefiles.tar $ find . -name Makefile.orig -exec tar -r -f Makefiles.tar {} \; This causes tar to dump core as fast as find can find the specified files. So I tried: $ touch Makefiles.tar $ tar -r -f Makefiles.tar Makefile.inc1 And also got a core dump. I then tried: $ tar -c -f Makefiles.tar Makefile.inc1 $ find . -name Makefile.orig -exec tar -r -f Makefiles.tar {} \; This worked as I expected. I seem to have uncovered a bug. It seems reasonable to me to append to an empty file. Perhaps I am missing some sort of arcana here. Later, Jason C. Wells