bjh 99/06/06 00:32:07
Modified: apr/file_io/os2 open.c Log: apr_open() should register a cleanup. Return success from ap_close() if file wasn't open. Revision Changes Path 1.4 +3 -0 apache-apr/apr/file_io/os2/open.c Index: open.c =================================================================== RCS file: /home/cvs/apache-apr/apr/file_io/os2/open.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- open.c 1999/06/04 13:13:17 1.3 +++ open.c 1999/06/06 07:32:06 1.4 @@ -127,6 +127,7 @@ dafile->isopen = TRUE; dafile->fname = ap_pstrdup(cntxt, fname); + ap_register_cleanup(dafile->cntxt, dafile, file_cleanup, NULL); return APR_SUCCESS; } @@ -146,6 +147,8 @@ return os2errno(rc); } } + + return APR_SUCCESS; }