krb5: Fix umask issue with SQLite3
This commit is contained in:

committed by
Jeffrey Altman

parent
aeac1186c8
commit
bacc484b2a
@@ -472,9 +472,7 @@ make_database(krb5_context context, krb5_scache *s)
|
||||
|
||||
ret = open_database(context, s, 0);
|
||||
if (ret) {
|
||||
mode_t oldumask = umask(077);
|
||||
ret = open_database(context, s, SQLITE_OPEN_CREATE);
|
||||
umask(oldumask);
|
||||
if (ret) goto out;
|
||||
|
||||
created_file = 1;
|
||||
|
Reference in New Issue
Block a user