We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42930b9 commit d8c0603Copy full SHA for d8c0603
src/common/database.c
@@ -4151,7 +4151,7 @@ void dt_database_backup(const char *filename)
4151
else
4152
{
4153
// there is nothing to backup, create an empty file to prevent further backup attempts
4154
- const int fd = g_open(backup, O_CREAT, S_IWUSR);
+ const int fd = g_open(backup, O_CREAT, S_IWUSR | S_IRUSR);
4155
if(fd < 0 || !g_close(fd, &gerror)) copy_status = FALSE;
4156
}
4157
if(!copy_status)
0 commit comments