summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/h5tools.c')
-rw-r--r--tools/lib/h5tools.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index 8f04e76..5334a51 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -178,6 +178,10 @@ h5tools_get_fapl(hid_t fapl, const char *driver, unsigned *drivernum)
/* Determine which driver the user wants to open the file with. Try
* that driver. If it can't open it, then fail. */
if(!strcmp(driver, drivernames[SEC2_IDX])) {
+ /* SEC2 driver */
+ if(H5Pset_fapl_sec2(new_fapl) < 0)
+ goto error;
+
if(drivernum)
*drivernum = SEC2_IDX;
} else if(!strcmp(driver, drivernames[FAMILY_IDX])) {