bnicholes 2002/11/14 13:26:59
Modified: file_io/unix open.c
Log:
Need to default to the standard open() call for NetWare when the returned
statCache is NULL
Revision Changes Path
1.101 +4 -2 apr/file_io/unix/open.c
Index: open.c
===================================================================
RCS file: /home/cvs/apr/file_io/unix/open.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -r1.100 -r1.101
--- open.c 6 Nov 2002 17:08:52 -0000 1.100
+++ open.c 14 Nov 2002 21:26:59 -0000 1.101
@@ -105,7 +105,7 @@
#ifdef NETWARE
apr_hash_t *statCache = (apr_hash_t *)getStatCache(CpuCurrentProcessor);
- apr_stat_entry_t *stat_entry;
+ apr_stat_entry_t *stat_entry = NULL;
#endif
(*new) = (apr_file_t *)apr_pcalloc(pool, sizeof(apr_file_t));
@@ -170,7 +170,9 @@
#endif
#ifdef NETWARE
- stat_entry = (apr_stat_entry_t*) apr_hash_get(statCache, fname,
APR_HASH_KEY_STRING);
+ if (statCache) {
+ stat_entry = (apr_stat_entry_t*) apr_hash_get(statCache, fname,
APR_HASH_KEY_STRING);
+ }
if (stat_entry) {
errno = NXFileOpen (stat_entry->pathCtx, stat_entry->casedName,
oflags, &(*new)->filedes);
}