]> Dogcows Code - chaz/tar/blobdiff - src/buffer.c
(backspace_output, close_archive): Cast rmtlseek position arg to off_t,
[chaz/tar] / src / buffer.c
index 528faa5928564322eacaea7a46fcb894e10b9541..3e10acc3a3fb345c7fd5f48fcfe29bdcae70d100 100644 (file)
@@ -1,5 +1,5 @@
 /* Buffer management for tar.
-   Copyright (C) 1988, 92, 93, 94, 96, 97 Free Software Foundation, Inc.
+   Copyright (C) 1988, 92, 93, 94, 96, 97, 1999 Free Software Foundation, Inc.
    Written by John Gilmore, on 1985-08-25.
 
    This program is free software; you can redistribute it and/or modify it
@@ -1337,7 +1337,7 @@ backspace_output (void)
 #endif
 
   {
-    off_t position = rmtlseek (archive, 0L, 1);
+    off_t position = rmtlseek (archive, (off_t) 0, 1);
 
     /* Seek back to the beginning of this record and start writing there.  */
 
@@ -1375,7 +1375,8 @@ close_archive (void)
      might become clever enough to just stop working, once there is no more
      work to do, we might have to revise this area in such time.  */
 
-  if (access_mode == ACCESS_READ && S_ISFIFO (archive_stat.st_mode))
+  if (access_mode == ACCESS_READ && S_ISFIFO (archive_stat.st_mode) &&
+      !ending_file_option)
     while (rmtread (archive, record_start->buffer, record_size) > 0)
       continue;
 #endif
@@ -1384,7 +1385,7 @@ close_archive (void)
     {
       off_t pos;
 
-      pos = rmtlseek (archive, 0L, 1);
+      pos = rmtlseek (archive, (off_t) 0, 1);
 #if MSDOS
       rmtwrite (archive, "", 0);
 #else
This page took 0.023881 seconds and 4 git commands to generate.