summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-11-24 16:36:01 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-11-24 16:36:01 (GMT)
commit083357dad3334473507a97e17593a9d68e42d69f (patch)
treeb78f0ea0ff118ef364dde7bbea3b2960c75b71d2 /test
parent3c4b17719895c8737439ad34f7630a0cf376cf49 (diff)
downloadhdf5-083357dad3334473507a97e17593a9d68e42d69f.zip
hdf5-083357dad3334473507a97e17593a9d68e42d69f.tar.gz
hdf5-083357dad3334473507a97e17593a9d68e42d69f.tar.bz2
[svn-r14283] Description:
Open external link file with read-only access, to avoid permissions issue in certain circumstances. Tested on: FreeBSD/32 6.2 (duty) w/read-only testfile
Diffstat (limited to 'test')
-rw-r--r--test/external.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/external.c b/test/external.c
index 769cd16..d05889e 100644
--- a/test/external.c
+++ b/test/external.c
@@ -841,7 +841,6 @@ test_4 (hid_t fapl)
hid_t fid, gid, xid, xid2;
char filename[1024]; /*file name */
char pathname[1024];
- char linked_pathname[1024];
char *srcdir = getenv("srcdir"); /*where the src code is located*/
const char *envval = NULL;
@@ -879,7 +878,7 @@ test_4 (hid_t fapl)
goto error;
/* Reopen the file */
- if((fid = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0)
+ if((fid = H5Fopen(filename, H5F_ACC_RDONLY, fapl)) < 0)
goto error;
/* Open the external link */