From 083357dad3334473507a97e17593a9d68e42d69f Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sat, 24 Nov 2007 11:36:01 -0500 Subject: [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 --- test/external.c | 3 +-- 1 file changed, 1 insertion(+), 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 */ -- cgit v0.12