home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / utils / bug / 2270 < prev    next >
Encoding:
Internet Message Format  |  1992-12-25  |  1.2 KB

  1. Path: sparky!uunet!olivea!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!watson.ibm.com!rocky
  2. From: rocky@watson.ibm.com (Rocky Bernstein)
  3. Newsgroups: gnu.utils.bug
  4. Subject: tar cv not reporting file name (in 1.11.1)
  5. Message-ID: <9212250127.AA19082@rs6ktext.watson.ibm.com>
  6. Date: 24 Dec 92 15:27:56 GMT
  7. Sender: gnulists@ai.mit.edu
  8. Reply-To: rocky@watson.ibm.com
  9. Distribution: gnu
  10. Organization: GNUs Not Usenet
  11. Lines: 26
  12. Approved: bug-gnu-utils@prep.ai.mit.edu
  13.  
  14. In gnu tar-1.11.1, when I issue:
  15. tar cv something*
  16.  
  17. I get blank lines for each file that is archived. Further
  18. investigation reveals that the variable current_file_name
  19. is not initialized on the create path; this is what print_header
  20. uses. The fix I applied was to an assignment before calling
  21. current_file_name = header->header.arch_name;
  22.  
  23.  
  24. *** create.c    Thu Dec 24 19:56:04 1992
  25. --- create.c~    Tue Sep  8 15:53:02 1992
  26. ***************
  27. *** 1273,1283 ****
  28.           head = header;
  29.           /* hstat is already set up */
  30.           head_standard = f_standard;
  31. -         /* rocky@watson.ibm.com:
  32. -            At this point, curr_file_name has not been initialized.
  33. -            Initialize it.
  34. -                 */
  35. -         current_file_name = header->header.arch_name;
  36.           print_header();
  37.       }
  38.  
  39. --- 1273,1278 ----
  40.