/[tar]/tar/src/list.c
ViewVC logotype

Diff of /tar/src/list.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.50 by gray, Fri Jul 25 15:05:41 2003 UTC revision 1.51 by gray, Sun Jul 27 12:01:04 2003 UTC
# Line 421  read_header (bool raw_extended_headers) Line 421  read_header (bool raw_extended_headers)
421                recent_long_name = 0;                recent_long_name = 0;
422                recent_long_name_blocks = 0;                recent_long_name_blocks = 0;
423              }              }
424              assign_string (&orig_file_name, name);
425            assign_string (&current_file_name, name);            assign_string (&current_file_name, name);
426            current_trailing_slash = strip_trailing_slashes (current_file_name);            current_trailing_slash = strip_trailing_slashes (current_file_name);
427    
# Line 903  print_header (off_t block_ordinal) Line 904  print_header (off_t block_ordinal)
904  {  {
905    char modes[11];    char modes[11];
906    char const *time_stamp;    char const *time_stamp;
907    char *temp_name;    char *temp_name = orig_file_name ? orig_file_name : current_file_name;
908        
909    /* These hold formatted ints.  */    /* These hold formatted ints.  */
910    char uform[UINTMAX_STRSIZE_BOUND], gform[UINTMAX_STRSIZE_BOUND];    char uform[UINTMAX_STRSIZE_BOUND], gform[UINTMAX_STRSIZE_BOUND];
# Line 924  print_header (off_t block_ordinal) Line 925  print_header (off_t block_ordinal)
925                 STRINGIFY_BIGINT (block_ordinal, buf));                 STRINGIFY_BIGINT (block_ordinal, buf));
926      }      }
927    
   if (current_trailing_slash)  
     {  
       temp_name = xmalloc (strlen (current_file_name) + 2);  
       strcpy (temp_name, current_file_name);  
       strcat (temp_name, "/");  
     }  
   else  
     {  
       temp_name = xmalloc (strlen (current_file_name) + 1);  
       strcpy (temp_name, current_file_name);  
     }  
     
928    if (verbose_option <= 1)    if (verbose_option <= 1)
929      {      {
930        /* Just the fax, mam.  */        /* Just the fax, mam.  */
# Line 1143  print_header (off_t block_ordinal) Line 1132  print_header (off_t block_ordinal)
1132            break;            break;
1133          }          }
1134      }      }
   free (temp_name);  
1135    fflush (stdlis);    fflush (stdlis);
1136  }  }
1137    

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26