Skip to content

Commit d8c0603

Browse files
ralfbrownTurboGit
authored andcommitted
add user-read permission to dummy database backup files
1 parent 42930b9 commit d8c0603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/database.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4151,7 +4151,7 @@ void dt_database_backup(const char *filename)
41514151
else
41524152
{
41534153
// 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);
4154+
const int fd = g_open(backup, O_CREAT, S_IWUSR | S_IRUSR);
41554155
if(fd < 0 || !g_close(fd, &gerror)) copy_status = FALSE;
41564156
}
41574157
if(!copy_status)

0 commit comments

Comments
 (0)