www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/19/04:24:02

Date: Wed, 19 Nov 1997 11:23:11 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: djgpp AT delorie DOT com
cc: Michal Mertl <xmerm05 AT manes DOT vse DOT cz>
Subject: Re: Bug in TAR
Message-ID: <Pine.SUN.3.91.971119111845.8399A-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019