summaryrefslogtreecommitdiffstats
path: root/src/H5Gstab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Gstab.c')
-rw-r--r--src/H5Gstab.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5Gstab.c b/src/H5Gstab.c
index cd71183..2e36135 100644
--- a/src/H5Gstab.c
+++ b/src/H5Gstab.c
@@ -191,7 +191,10 @@ H5G_stab_insert(H5G_entry_t *grp_ent, const char *name, H5G_entry_t *obj_ent)
assert(grp_ent && grp_ent->file);
assert(name && *name);
assert(obj_ent && obj_ent->file);
- assert(grp_ent->file->shared == obj_ent->file->shared);
+ if (grp_ent->file->shared != obj_ent->file->shared) {
+ HRETURN_ERROR(H5E_SYM, H5E_LINK, FAIL,
+ "interfile hard links are not allowed");
+ }
/* initialize data to pass through B-tree */
if (NULL == H5O_read(grp_ent, H5O_STAB, 0, &stab)) {