tar dumps core when appending to empty file

From: Jason C. Wells <jcw_at_highperformance.net>
Date: Sat, 23 Oct 2004 19:49:38 -0700
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
Received on Sun Oct 24 2004 - 00:49:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:19 UTC