Skip to content

Conversation

@Kenzzer
Copy link
Member

@Kenzzer Kenzzer commented Jan 13, 2026

Fixes #2069

Assumed it would be a simple matter of intercepting an exception, except it wasn't. Looks like this is more of microsoft randomness.

This PR throws in a quick open mode check on the string passed by the plugin. If anything this will help devs narrow down mistakes. Open mode check isn't my own nor do I think its perfect, but its good enough for us, it complies with what I read of the standard. I slightly tweaked it to our needs.

@Kenzzer Kenzzer requested a review from psychonic January 13, 2026 20:05
Copy link
Member

@psychonic psychonic left a comment

Choose a reason for hiding this comment

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

Image

@psychonic psychonic merged commit c310db4 into master Jan 14, 2026
4 checks passed
@psychonic psychonic deleted the k/fix_open_file branch January 14, 2026 02:02
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.

Opening file with invalid open mode crashes server

3 participants