diff options
author | Richard Basch <probe@mit.edu> | 1996-01-22 04:52:28 +0000 |
---|---|---|
committer | Richard Basch <probe@mit.edu> | 1996-01-22 04:52:28 +0000 |
commit | b1e0369e1b9516117d24a7c90fafe69048f36660 (patch) | |
tree | 8f5ca99cde63c4eb13ae4a55fe074203bd1a324c /src/lib/gssapi/generic/gssapi_generic.c | |
parent | 99deb652aed6395120f957f211dbd604e4aa8774 (diff) | |
download | krb5-b1e0369e1b9516117d24a7c90fafe69048f36660.tar.gz krb5-b1e0369e1b9516117d24a7c90fafe69048f36660.tar.xz krb5-b1e0369e1b9516117d24a7c90fafe69048f36660.zip |
Fixed three problems in the database rename function:
1. Added a missing call to krb5_dbm_db_end_update to ensure the lock file
timestamp is updated.
2. Corrected the test for a valid lock file handle to be >=0 not non-zero.
3. Use the lock file of the target name, since the source will shortly
disappear and another process may already be checking for the lock
file of the target. (For example, a kdb5_edit db load will use
a temporary name and rename the db to the proper name when it is
done, and krb5kdc will be testing for the target lock file.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7351 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi/generic/gssapi_generic.c')
0 files changed, 0 insertions, 0 deletions