Fixed incorrect database creation flags
This commit is contained in:
parent
52fcb4d4e3
commit
aea6e94ad7
@ -154,8 +154,11 @@ int init_perm_permissions_table(const char *db_filename) {
|
||||
euid = geteuid();
|
||||
fprintf(stderr, "Running with uid: %d, gid: %d\n", euid, getegid());
|
||||
|
||||
if (sqlite3_open(db_filename, &perm_database)) {
|
||||
perror("Can't open permanent permissions database:");
|
||||
if (sqlite3_open_v2(db_filename, &perm_database,
|
||||
SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE |
|
||||
SQLITE_OPEN_FULLMUTEX,
|
||||
NULL)) {
|
||||
perror("Can't open permanent permissions database");
|
||||
return -1;
|
||||
}
|
||||
umask(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user