diff --git a/source/ws.cpp b/source/ws.cpp index 49e5365..788abb5 100644 --- a/source/ws.cpp +++ b/source/ws.cpp @@ -459,7 +459,7 @@ int ws_saveState(char *statepath) } } - int fp=open(newPath, O_RDWR|O_CREAT); + int fp=open(newPath, O_RDWR|O_CREAT, 0644); delete newPath; if (fp==-1)