Ensure database permissions are correct

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2021-11-02 10:54:27 +01:00
parent 2188fb8c0b
commit 3f97888c1a
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD
1 changed files with 2 additions and 2 deletions

View File

@ -268,8 +268,8 @@ void db_init(void)
}
// Explicitly set permissions to 0644
// 644 = u+w u+r g+r o+r
const mode_t mode = S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH;
// 644 = u+w u+r g+w g+r o+r
const mode_t mode = S_IWUSR | S_IRUSR | S_IWGRP | S_IRGRP| S_IROTH;
chmod_file(config.files.database, mode);
// Open database