Blame SOURCES/cpio-2.11-treat-read-errors.patch

483580
diff --git a/src/util.c b/src/util.c
483580
index ab49890..7332891 100644
483580
--- a/src/util.c
483580
+++ b/src/util.c
483580
@@ -203,7 +203,7 @@ tape_fill_input_buffer (int in_des, int num_bytes)
483580
       get_next_reel (in_des);
483580
       input_size = rmtread (in_des, input_buffer, num_bytes);
483580
     }
483580
-  if (input_size < 0)
483580
+  if (input_size == SAFE_READ_ERROR)
483580
     error (1, errno, _("read error"));
483580
   if (input_size == 0)
483580
     {
483580
@@ -224,7 +224,7 @@ disk_fill_input_buffer (int in_des, off_t num_bytes)
483580
   in_buff = input_buffer;
483580
   num_bytes = (num_bytes < DISK_IO_BLOCK_SIZE) ? num_bytes : DISK_IO_BLOCK_SIZE;
483580
   input_size = read (in_des, input_buffer, num_bytes);
483580
-  if (input_size < 0) 
483580
+  if (input_size == SAFE_READ_ERROR)
483580
     {
483580
       input_size = 0;
483580
       return (-1);