diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-04-24 16:12:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 16:12:00 (GMT) |
commit | 0312137b000f9814ce20c7235fdee50332b3eeed (patch) | |
tree | 21f97ca7b97e37a32c78f6fb13cfe49099244ed3 /tools/src/h5dump | |
parent | 5c8c9ce925b9386fe67680ab558196cd02185241 (diff) | |
download | hdf5-0312137b000f9814ce20c7235fdee50332b3eeed.zip hdf5-0312137b000f9814ce20c7235fdee50332b3eeed.tar.gz hdf5-0312137b000f9814ce20c7235fdee50332b3eeed.tar.bz2 |
Fix ROS3 VFD anonymous credential usage with h5dump and h5ls (#2798) (#2800)
Diffstat (limited to 'tools/src/h5dump')
-rw-r--r-- | tools/src/h5dump/h5dump.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tools/src/h5dump/h5dump.c b/tools/src/h5dump/h5dump.c index 6c1556a..2a5eeb7 100644 --- a/tools/src/h5dump/h5dump.c +++ b/tools/src/h5dump/h5dump.c @@ -862,8 +862,19 @@ parse_start: case 'f': vfd_info_g.type = VFD_BY_NAME; vfd_info_g.u.name = H5_optarg; - vfd_info_g.info = NULL; use_custom_vfd_g = TRUE; + +#ifdef H5_HAVE_ROS3_VFD + if (0 == HDstrcmp(vfd_info_g.u.name, drivernames[ROS3_VFD_IDX])) + if (!vfd_info_g.info) + vfd_info_g.info = &ros3_fa_g; +#endif +#ifdef H5_HAVE_LIBHDFS + if (0 == HDstrcmp(vfd_info_g.u.name, drivernames[HDFS_VFD_IDX])) + if (!vfd_info_g.info) + vfd_info_g.info = &hdfs_fa_g; +#endif + break; case 'g': dump_opts.display_all = 0; |