* kdb_default.c (krb5_def_store_mkey): If the file can't be opened, construct
authorKen Raeburn <raeburn@mit.edu>
Tue, 15 Aug 2006 23:43:27 +0000 (23:43 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 15 Aug 2006 23:43:27 +0000 (23:43 +0000)
an error message that includes the file's name.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18448 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/kdb_default.c

index 7153330560b0e926d62ee217bf3928173fa89574..9c74fb005d4cf7822589939adcc9ae28920a5a2b 100644 (file)
@@ -170,6 +170,9 @@ krb5_def_store_mkey(context, keyfile, mname, key, master_pwd)
 #if HAVE_UMASK
        (void) umask(oumask);
 #endif
+       krb5_set_error_message (context, e,
+                               "%s accessing file '%s'",
+                               error_message (e), keyfile);
        return e;
     }
     enctype = key->enctype;