]> Dogcows Code - chaz/tar/commitdiff
(open_archive): Clear read_full_records_option
authorSergey Poznyakoff <gray@gnu.org.ua>
Mon, 22 Mar 2004 11:59:35 +0000 (11:59 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Mon, 22 Mar 2004 11:59:35 +0000 (11:59 +0000)
if reading from a pipe.
(short_read): Display warning about the deduced record size
if version > 1

src/buffer.c

index 7fd43f647e694020fa82f35265416d2229c70926..8dc6e88888dcb632c2b226b1737a5a8f77743a08 100644 (file)
@@ -293,6 +293,7 @@ open_archive (enum access_mode wanted_access)
        {
        case ACCESS_READ:
          child_pid = sys_child_open_for_uncompress ();
+         read_full_records_option = false;
          break;
 
        case ACCESS_WRITE:
@@ -644,7 +645,7 @@ short_read (ssize_t status)
   /* FIXME: for size=0, multi-volume support.  On the first record, warn
      about the problem.  */
 
-  if (!read_full_records_option && verbose_option
+  if (!read_full_records_option && verbose_option > 1
       && record_start_block == 0 && status > 0)
     {
       unsigned long rsize = (record_size - left) / BLOCKSIZE;
This page took 0.025136 seconds and 4 git commands to generate.