From 576a979097ca556a4f96d0edcb91c7eb621f1b89 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Mon, 18 Dec 2006 23:11:15 +0000 Subject: [PATCH] pull up r18893 from trunk r18893@cathode-dark-space: tlyu | 2006-12-01 12:09:42 -0500 ticket: 3218 * src/kadmin/dbutil/dump.c (load_db): Open the dumpfile as read-only; we only get a shared lock, so no reason to open for writing for the sake of getting a lock. ticket: 3218 version_fixed: 1.6 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@18963 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/dbutil/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kadmin/dbutil/dump.c b/src/kadmin/dbutil/dump.c index 314156ea0..5c627d30c 100644 --- a/src/kadmin/dbutil/dump.c +++ b/src/kadmin/dbutil/dump.c @@ -2209,7 +2209,7 @@ load_db(argc, argv) * Open the dumpfile */ if (dumpfile) { - if ((f = fopen(dumpfile, "r+")) == NULL) { + if ((f = fopen(dumpfile, "r")) == NULL) { fprintf(stderr, dfile_err_fmt, programname, dumpfile, error_message(errno)); exit_status++; -- 2.26.2