summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-01-11 20:58:36 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-01-11 20:58:36 (GMT)
commit6c30f0ae168fa5e7cdfb1553ef41553b20350573 (patch)
treeff6993e22d8ad55e365fbd433279ffc694d441d7
parent846de763b3d1af4b411393b6cd3e5f71f3054f43 (diff)
downloadhdf5-6c30f0ae168fa5e7cdfb1553ef41553b20350573.zip
hdf5-6c30f0ae168fa5e7cdfb1553ef41553b20350573.tar.gz
hdf5-6c30f0ae168fa5e7cdfb1553ef41553b20350573.tar.bz2
[svn-r1020] I messed the last one up again. sorry this should be the last time.
-rw-r--r--src/H5Flow.c10
1 files 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;
}