Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for directory type on open and read syscalls #1535

Merged
merged 1 commit into from
Jul 13, 2021

Conversation

sanderssj
Copy link
Collaborator

Linux does not allow normal read or write to directory file descriptors,
so open should return EISDIR for any write access and read should return
EISDIR if the descriptor is a directory. The write runtime test has been
updated to verify this behavior. This change also defines O_DIRECTORY
which should return ENOTDIR if the specified file is not a directory.
See open(2) and read(2) for further description of these behaviors.

Fixes #1533

@sanderssj sanderssj requested a review from a team July 12, 2021 21:39
Linux does not allow normal read or write to directory file descriptors,
so open should return EISDIR for any write access and read should return
EISDIR if the descriptor is a directory. The write runtime test has been
updated to verify this behavior. This change also defines O_DIRECTORY
which should return ENOTDIR if the specified file is not a directory.
See open(2) and read(2) for further description of these behaviors.
@sanderssj sanderssj force-pushed the fix/open-write-directory branch from 1e56407 to 95a58b9 Compare July 12, 2021 21:50
Copy link
Contributor

@wjhun wjhun left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mysql_8.0.25 local package fails to load
2 participants