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

CSFile Windows creation file mode fix #1205

Merged
merged 3 commits into from
Jan 31, 2024
Merged

Conversation

DavideRei
Copy link
Contributor

The correct mode to create a file in Windows, if not exists, and open it, if exists, is CREATE_ALWAYS. With (OPEN_ALWAYS | CREATE_NEW) the mode is set to 5 (TRUNCATE_EXISTING) and if the file doesn't exists the CreateFile function return an error. https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea

The correct mode to create a file, if not exists, and open it, if exists, is CREATE_ALWAYS. With (OPEN_ALWAYS | CREATE_NEW) the mode is set to 5 (TRUNCATE_EXISTING) and if the file doesn't exists the CreateFile function return an error.
https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea
Added new file permissions
@DavideRei
Copy link
Contributor Author

DavideRei commented Jan 11, 2024

added creation file fix for Linux.
Create a new file require the file permissions

@DavideRei
Copy link
Contributor Author

added fix for #1206
When changing the body/id of a char update the dispid

@Jhobean
Copy link
Contributor

Jhobean commented Jan 12, 2024

Tested the dispid Part and now it work fine! Thx. ABout the CSfile, I don't know

@cbnolok cbnolok merged commit 646b9d1 into Sphereserver:master Jan 31, 2024
7 checks passed
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.

3 participants