Mail Archives: djgpp/1997/11/19/04:24:02
On Tue, 18 Nov 1997, Michal Mertl wrote:
> It states in docs that it fully supports dos absolute pathnames
Well, full support doesn't mean bug-free support ;-).
> but when I
> start it with "tar -cf thefile.tar c:/foo/thefile.txt" in directory c:/foo it
> crashes with SIGSEGV.
<BLUSH> Thanks for reporting this bug. This is a price of introducing
insignificant changes after most of the testing has been done already.
Here's the source-level patch (I will upload patched distributions
ASAP):
diff -c gnu/tar-1.12/src/create.c~0 gnu/tar-1.12/src/create.c
*** gnu/tar-1.12/src/create.c~0 Sat Oct 4 16:23:22 1997
--- gnu/tar-1.12/src/create.c Wed Nov 19 08:40:50 1997
***************
*** 183,189 ****
{
if (!warned_once)
{
! char msg[50];
/* Don't set warned_once if the next character is a slash,
so that they will see the message about the slash as well. */
if (name[2] != '/')
--- 183,189 ----
{
if (!warned_once)
{
! char msg[60];
/* Don't set warned_once if the next character is a slash,
so that they will see the message about the slash as well. */
if (name[2] != '/')
- Raw text -