From f7644ddb5931db90834832f544fd330eedbd797c Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Wed, 6 Mar 1996 21:39:17 +0000 Subject: [PATCH] POSIX requires a file be opened read-write for locking git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7597 dc483132-0cff-0310-8789-dd5450dbe970 --- src/admin/edit/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/admin/edit/dump.c b/src/admin/edit/dump.c index 405074c88..2f6ed577c 100644 --- a/src/admin/edit/dump.c +++ b/src/admin/edit/dump.c @@ -1644,7 +1644,7 @@ load_db(argc, argv) * Open the dumpfile */ if (dumpfile) { - if ((f = fopen(dumpfile, "r"))) { + if ((f = fopen(dumpfile, "r+"))) { kret = krb5_lock_file(kcontext, fileno(f), KRB5_LOCKMODE_SHARED); } } -- 2.26.2