]> Dogcows Code - chaz/tar/blobdiff - src/buffer.c
*** empty log message ***
[chaz/tar] / src / buffer.c
index 5f454b96a6a462563343e90bda1617887cd9fc34..31e1283cc8a3ba69449e3536f0dba11a12f6d996 100644 (file)
@@ -1,5 +1,5 @@
 /* Buffer management for tar.
-   Copyright (C) 1988, 1992 Free Software Foundation
+   Copyright (C) 1988, 1992, 1993 Free Software Foundation
 
 This file is part of GNU Tar.
 
@@ -265,7 +265,6 @@ child_open ()
 {
   int pipe[2];
   int err = 0;
-  int nar;
 
   int kidpipe[2];
   int kidchildpid;
@@ -698,6 +697,7 @@ open_archive (reading)
        sprintf (ar_block->header.arch_name, "%s Volume 1", f_volhdr);
       else
        strcpy (ar_block->header.arch_name, f_volhdr);
+      current_file_name = ar_block->header.arch_name;
       ar_block->header.linkflag = LF_VOLHDR;
       to_oct (time (0), 1 + 12, ar_block->header.mtime);
       finish_header (ar_block);
@@ -1285,10 +1285,10 @@ close_archive ()
              if (WEXITSTATUS (status) == (SIGPIPE + 128))
                {
                  /*
-                          * /bin/sh returns this if its child
-                          * dies with SIGPIPE.  'Sok.
-                          */
-                 break;
+                  * /bin/sh returns this if its child
+                  * dies with SIGPIPE.  'Sok.
+                  */
+                 /* Do nothing. */
                }
              else if (WEXITSTATUS (status))
                msg ("child returned status %d",
@@ -1362,7 +1362,7 @@ anno (stream, prefix, savedp)
 #endif
 
 /* Called to initialize the global volume number. */
-int
+void
 init_volume_number ()
 {
   FILE *vf;
@@ -1379,7 +1379,7 @@ init_volume_number ()
 }
 
 /* Called to write out the closing global volume number. */
-int
+void
 closeout_volume_number ()
 {
   FILE *vf;
This page took 0.021082 seconds and 4 git commands to generate.