rbb         99/10/19 04:19:29

  Modified:    src/lib/apr/file_io/unix readwrite.c
  Log:
  Somewhere along the line, we stopped checking the return codes of read
  and write.  This fixes that oversight.
  Submitted by: Manoj Kasichainula
  
  Revision  Changes    Path
  1.13      +6 -0      apache-2.0/src/lib/apr/file_io/unix/readwrite.c
  
  Index: readwrite.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/readwrite.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- readwrite.c       1999/10/13 15:29:20     1.12
  +++ readwrite.c       1999/10/19 11:19:28     1.13
  @@ -102,6 +102,9 @@
           thefile->eof_hit = 1;
       }
       *nbytes = rv;
  +    if (rv == -1) {
  +        return errno;
  +    }
       return APR_SUCCESS;
   }
   
  @@ -134,6 +137,9 @@
   
       thefile->stated = 0;
       *nbytes = rv;
  +    if (rv == -1) {
  +        return errno;
  +    }
       return APR_SUCCESS;
   }
   
  
  
  

Reply via email to