httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@hyperreal.org
Subject cvs commit: apache-2.0/src/lib/apr/file_io/unix open.c
Date Mon, 13 Sep 1999 14:06:42 GMT
rbb         99/09/13 07:06:42

  Modified:    src/lib/apr/file_io/unix open.c
  Log:
  Fix the bug dealing with opening files on Unix
  
  Revision  Changes    Path
  1.11      +2 -1      apache-2.0/src/lib/apr/file_io/unix/open.c
  
  Index: open.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/open.c,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- open.c	1999/09/12 12:10:11	1.10
  +++ open.c	1999/09/13 14:06:41	1.11
  @@ -113,6 +113,7 @@
   
       (*new)->cntxt = cont;
       (*new)->oflags = oflags;
  +    (*new)->filedes = -1;
   
       if ((flag & APR_READ) && (flag & APR_WRITE)) {
           buf_oflags = strdup("r+");
  @@ -167,7 +168,7 @@
           }    
       }
   
  -    if ((*new)->filedes < 0 || (*new)->filehand == NULL) {
  +    if ((*new)->filedes < 0 && (*new)->filehand == NULL) {
          (*new)->filedes = -1;
          (*new)->eof_hit = 1;
           return errno;
  
  
  

Mime
View raw message