set errno=0 prior to fopen in kt_file
authorTom Yu <tlyu@mit.edu>
Wed, 24 Nov 2004 01:28:03 +0000 (01:28 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 24 Nov 2004 01:28:03 +0000 (01:28 +0000)
commit30f0fa1e2ef25e2c43105606ce2e663956990695
treeb084c042ddf473d692708e9ed68ed7408d39f796
parent5e822947a9cc593baf2b8bcb69136f51607c7ef0
set errno=0 prior to fopen in kt_file

* kt_file.c (krb5_ktfileint_open): Update previous change by
explicitly setting errno=0 prior to calling fopen().  Also, return
EMFILE, not ENFILE, for compatibility with Solaris 8, which does
set errno when out of file descriptors.

ticket: new
target_version: 1.4
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16904 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/keytab/ChangeLog
src/lib/krb5/keytab/kt_file.c