From 6c30f0ae168fa5e7cdfb1553ef41553b20350573 Mon Sep 17 00:00:00 2001 From: Patrick Lu Date: Mon, 11 Jan 1999 15:58:36 -0500 Subject: [svn-r1020] I messed the last one up again. sorry this should be the last time. --- src/H5Flow.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/H5Flow.c b/src/H5Flow.c index a522870..274d77c 100644 --- a/src/H5Flow.c +++ b/src/H5Flow.c @@ -481,7 +481,6 @@ H5F_low_access(const H5F_low_class_t *type, const char *name, { htri_t ret_value; struct stat sb; - int fid; FUNC_ENTER(H5F_low_size, FAIL); @@ -489,6 +488,9 @@ H5F_low_access(const H5F_low_class_t *type, const char *name, if (type->access) { ret_value = (type->access) (name, access_parms, mode, key /*out*/); + } else { + ret_value = (0 == HDaccess(name, mode) ? TRUE : FALSE); + if (key) { #ifdef WIN32 /* this extra block is needed because windows sets the st_dev member of sb @@ -500,11 +502,7 @@ H5F_low_access(const H5F_low_class_t *type, const char *name, close(fid); #else HDstat(name, &sb); -#endif - } else { - ret_value = (0 == HDaccess(name, mode) ? TRUE : FALSE); - if (key) { - HDstat(name, &sb); +#endif key->dev = sb.st_dev; key->ino = sb.st_ino; } -- cgit v0.12