diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-04-03 20:08:15 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-04-03 20:08:15 (GMT) |
commit | 723e738e046520399b5ecb8c1937c98cc96fdd93 (patch) | |
tree | e40bf1fd59c5d7c7ac8e985890096e4f8f5bfa76 /tools/h5ls | |
parent | 3116af4f6ac4b6d551cba933a342f43ab897961e (diff) | |
download | hdf5-723e738e046520399b5ecb8c1937c98cc96fdd93.zip hdf5-723e738e046520399b5ecb8c1937c98cc96fdd93.tar.gz hdf5-723e738e046520399b5ecb8c1937c98cc96fdd93.tar.bz2 |
[svn-r12196] Purpose:
bug fix
Description:
h5ls was not printing root group attributes
Solution:
Platforms tested:
linux 32, 64
solaris
Misc. update:
Diffstat (limited to 'tools/h5ls')
-rw-r--r-- | tools/h5ls/h5ls.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c index 1f73c37..792db23 100644 --- a/tools/h5ls/h5ls.c +++ b/tools/h5ls/h5ls.c @@ -2254,6 +2254,16 @@ main (int argc, const char *argv[]) * group. */ sym_insert(&sb, oname); iter.container = container = fix_name(show_file_name_g?fname:"", oname); + /* list root attributes */ + if (verbose_g>0) + { + if ((root=H5Gopen(file, "/"))<0) + leave(1); + H5Aiterate(root, NULL, list_attr, NULL); + if (H5Gclose(root)<0) + leave(1); + } + /* list */ H5Giterate(file, oname, NULL, list, &iter); free(container); @@ -2272,3 +2282,4 @@ main (int argc, const char *argv[]) } leave(0); } + |