]> Dogcows Code - chaz/tar/commitdiff
(print_header): Print trailing slash if
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 24 Jul 2003 14:48:08 +0000 (14:48 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 24 Jul 2003 14:48:08 +0000 (14:48 +0000)
current_trailing_slash was set (extrac03.sh,extrac04.sh tests).

src/list.c

index 59374ff8cbaf6fdb4943511f49e20ea0abdf01b5..0fdcc2e1406dba1d37455a682041b0906a4ec8dc 100644 (file)
@@ -925,7 +925,10 @@ print_header (off_t block_ordinal)
   if (verbose_option <= 1)
     {
       /* Just the fax, mam.  */
-      fprintf (stdlis, "%s\n", quotearg (current_file_name));
+      fprintf (stdlis, "%s", quotearg (current_file_name));
+      if (current_trailing_slash)
+       fprintf (stdlis, "/");
+      fprintf (stdlis, "\n");
     }
   else
     {
This page took 0.031665 seconds and 4 git commands to generate.