🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1152

tar cv not reporting file name (in 1.11.1)

#1152
From: Rocky Bernstein
Date: Thu, 24 Dec 1992 15:27
26 lines
1286 bytes
In gnu tar-1.11.1, when I issue:
tar cv something*

I get blank lines for each file that is archived. Further
investigation reveals that the variable current_file_name
is not initialized on the create path; this is what print_header
uses. The fix I applied was to an assignment before calling
current_file_name = header->header.arch_name;


*** create.c	Thu Dec 24 19:56:04 1992
--- create.c~	Tue Sep  8 15:53:02 1992
***************
*** 1273,1283 ****
  		head = header;
  		/* hstat is already set up */
  		head_standard = f_standard;
- 		/* rocky@watson.ibm.com:
- 		   At this point, curr_file_name has not been initialized.
- 		   Initialize it.
-                 */
- 		current_file_name = header->header.arch_name;
  		print_header();
  	}

--- 1273,1278 ----
Technical Details
Message-ID: <9212250127.AA19082@rs6ktext.watson.ibm.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!watson.ibm.com!rocky

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!watson.ibm.com!rocky
From: rocky@watson.ibm.com (Rocky Bernstein)
Newsgroups: gnu.utils.bug
Subject: tar cv not reporting file name (in 1.11.1)
Message-ID: <9212250127.AA19082@rs6ktext.watson.ibm.com>
Date: 24 Dec 92 15:27:56 GMT
Sender: gnulists@ai.mit.edu
Reply-To: rocky@watson.ibm.com
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 26
Approved: bug-gnu-utils@prep.ai.mit.edu