From: Tom Yu Date: Fri, 1 Dec 2006 17:09:42 +0000 (+0000) Subject: * src/kadmin/dbutil/dump.c (load_db): Open the dumpfile as X-Git-Tag: krb5-1.7-alpha1~1424 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9f1a2e477b048759de994ccad044ab78b2c50e37;p=krb5.git * 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 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18893 dc483132-0cff-0310-8789-dd5450dbe970 --- 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++;