Skip to content

Commit

Permalink
Create rw files on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
felipetavares committed Nov 24, 2019
1 parent 70f8fb3 commit f672287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kernel/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ bool fs::create_file (Path _path) {
return false;

#ifdef WIN32
int fd = ::open(_path.get_path().c_str(), O_CREAT);
int fd = ::open(_path.get_path().c_str(), _O_CREAT, _S_IREAD | _S_IWRITE);
#else
int fd = open(_path.get_path().c_str(), O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
#endif
Expand Down

0 comments on commit f672287

Please sign in to comment.