Skip to content

Commit

Permalink
loadmap: Fix conf file save access mode
Browse files Browse the repository at this point in the history
The plugin does not create the cfg file, but updates it if already existing.
No idea what's wrong, maybe it's permissions.
  • Loading branch information
mefistotelis committed Jun 19, 2024
1 parent e9d04f2 commit 48302e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LoadMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ bool write_config_file(
qstrncat(szIniPath, ".cfg", sizeof(szIniPath));
szIniPath[sizeof(szIniPath) - 1] = '\0';

fh = qopen(szIniPath, O_CREAT|O_WRONLY|O_TRUNC);
fh = qopen(szIniPath, O_CREAT|O_WRONLY|O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP);
if (fh == -1)
return false;

Expand Down

0 comments on commit 48302e0

Please sign in to comment.