Skip to content

Conversation

recursiveforte
Copy link

Motivation:

It's possible for fdopendir(3) to return 0 if the file descriptor's backing filesystem is force-unmounted. This should return an error, but instead crashes the library.

Result:

If fdopendir fails, FileDescriptor.opendir will return the error contained in errno (set by the stat(2) call in libc fdopendir).

Motivation:

It's possible for fdopendir(3) to return 0 if the file descriptor's backing
filesystem is force-unmounted. This should return an error, but instead crashes
the library.

Result:

If fdopendir fails, FileDescriptor.opendir will return the error contained
in errno (set by the stat(2) call in libc fdopendir).
@glbrntt glbrntt enabled auto-merge (squash) August 21, 2025 09:47
Copy link
Contributor

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants