manoj 99/10/31 20:24:09
Modified: src/lib/apr/file_io/unix open.c Log: A little more cleanup. Buffered mode complicates things. Revision Changes Path 1.19 +1 -2 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.18 retrieving revision 1.19 diff -u -d -u -r1.18 -r1.19 --- open.c 1999/11/01 03:58:13 1.18 +++ open.c 1999/11/01 04:24:08 1.19 @@ -115,6 +115,7 @@ (*new)->cntxt = cont; (*new)->oflags = oflags; (*new)->filedes = -1; + (*new)->filehand = NULL; if ((flag & APR_READ) && (flag & APR_WRITE)) { buf_oflags = ap_pstrdup(cont, "r+"); @@ -129,7 +130,6 @@ oflags = O_WRONLY; } else { - (*new)->filedes = -1; return APR_EACCES; } @@ -148,7 +148,6 @@ } } if ((flag & APR_EXCL) && !(flag & APR_CREATE)) { - (*new)->filedes = -1; return APR_EACCES; }