diff options
Diffstat (limited to 'src/H5FDcore.c')
-rw-r--r-- | src/H5FDcore.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5FDcore.c b/src/H5FDcore.c index 14ab106..fc56096 100644 --- a/src/H5FDcore.c +++ b/src/H5FDcore.c @@ -330,6 +330,8 @@ H5FD_core_open(const char *name, unsigned UNUSED flags, hid_t fapl_id, FUNC_ENTER_NOAPI(H5FD_core_open, NULL); /* Check arguments */ + if (!(H5F_ACC_CREAT & flags)) + HGOTO_ERROR(H5E_ARGS, H5E_UNSUPPORTED, NULL, "must create core files, not open them"); if (0==maxaddr || HADDR_UNDEF==maxaddr) HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, NULL, "bogus maxaddr"); if (ADDR_OVERFLOW(maxaddr)) |