HDFGroup / HDFGroup/hdf5

Opening unseekable file sometimes succeeds

Open
#4,758 0 comments 0 reactions 1 assignee Claimed by @mattjala View on GitHub
Component - C Library
Dominant language
C
Stars
988
Forks
355
Avg merge
4d 2h
Merged PRs (30d)
12

Description

**Describe the bug**
A call to create/open an unseekable file (e.g. /dev/null) sometimes succeeds and returns a valid file ID.

**Expected behavior**
The H5Fcreate()/H5Fopen() call should fail by returning H5I_INVALID_HID.

**Platform (please complete the following information)**
Variable; see CI results [here](https://github.com/HDFGroup/hdf5/actions/runs/10562340838).

**Additional context**
This problem can be observed during `test_unseekable_file()` in `tfile.c`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.