🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1023

gnu tar 1.11.1 bug report this fix

#1023
From: James Ganong
Date: Thu, 05 Nov 1992 06:55
37 lines
1435 bytes
this may be a duplicate of a note i sent a minute ago,
but i think it did not make it out, so i am resending.

using gnu tar-1.11.1 i see the following problem on an decstation 5000/25,
but not on an sgi.  it erroneously thinks that directories has been renamed. 

% mkdir d
% mkdir d/d
% ./tar --verbose --create --file /tmp/foo --listed-incremental r d
./tar: Directory d/d is new
d/
d/d/
% !.
./tar --verbose --create --file /tmp/foo --listed-incremental r d
./tar: directory d/d has been renamed.
d/
d/d/

*** gnu.c.orig	Wed Nov  4 22:13:54 1992
--- gnu.c	Wed Nov  4 22:28:28 1992
***************
*** 160,166 ****
  		if(strp[-1]=='\n')
  			strp[-1]='\0';
  		strp=buf;
! 		dev=atol(strp);
  		while(isdigit(*strp))
  			strp++;
  		ino=atol(strp);
--- 160,166 ----
  		if(strp[-1]=='\n')
  			strp[-1]='\0';
  		strp=buf;
! 		dev=strtoul(strp,(char **) NULL, 10);
  		while(isdigit(*strp))
  			strp++;
  		ino=atol(strp);
Technical Details
Message-ID: <9211050655.AA23037@ced.berkeley.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ced.berkeley.edu!jeg

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ced.berkeley.edu!jeg
From: jeg@ced.berkeley.edu (James Ganong)
Subject: gnu tar 1.11.1 bug report this fix
Message-ID: <9211050655.AA23037@ced.berkeley.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 5 Nov 1992 06:55:16 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 38