]> git.ipfire.org Git - thirdparty/krb5.git/commit
Use blocking lock when creating db2 KDB
authorGreg Hudson <ghudson@mit.edu>
Tue, 23 Feb 2016 22:15:18 +0000 (17:15 -0500)
committerTom Yu <tlyu@mit.edu>
Wed, 24 Feb 2016 20:25:34 +0000 (15:25 -0500)
commita288a808a0a550fa20ee8361a60f6de9578bdbf4
tree3d3149c661474ae198c0a6ae3b7c47389d08a199
parent3421a1471d635256432f37325310e49a6d039413
Use blocking lock when creating db2 KDB

In 1.11 we switched from non-blocking to blocking locks in the DB2
module, but we missed one call to krb5_lock_file() in ctx_create_db().
This non-blocking lock can cause krb5_db_promote() to fail if the
database is locked when we try to promote the DB, in turn causing
kdb5_util load to fail.  Correct this call to make krb5_db_promote()
more robust.

(cherry picked from commit 1868916dbb60a64b92da217257b4ed021262afd3)

ticket: 8367
version_fixed: 1.13.4
tags: -pullup
status: resolved
src/plugins/kdb/db2/kdb_db2.c