summaryrefslogtreecommitdiffstats
path: root/src/util/profile/prof_init.c
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2002-01-23 15:55:53 +0000
committerAlexandra Ellwood <lxs@mit.edu>2002-01-23 15:55:53 +0000
commit4df3816b982e8fc1893a492e02182570dcf34789 (patch)
treefda764a5179df7e6677827ca93ad5798a8139617 /src/util/profile/prof_init.c
parent14636969c6aea9e6fa38a76346d310b7b1ec39da (diff)
downloadkrb5-4df3816b982e8fc1893a492e02182570dcf34789.tar.gz
krb5-4df3816b982e8fc1893a492e02182570dcf34789.tar.xz
krb5-4df3816b982e8fc1893a492e02182570dcf34789.zip
prof_init.c, prof_tree.c: Fixed calls to profile_update_file/profile_open_file to handle the possibility that we have lost permission to read one of the configuration files in the file list (say it's in AFS). We should only fail catastrophically if we can't read all of the files in the profile
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14116 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/profile/prof_init.c')
-rw-r--r--src/util/profile/prof_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/profile/prof_init.c b/src/util/profile/prof_init.c
index d939d26641..f94833a7bc 100644
--- a/src/util/profile/prof_init.c
+++ b/src/util/profile/prof_init.c
@@ -46,7 +46,7 @@ profile_init(files, ret_profile)
for (fs = files; !PROFILE_LAST_FILESPEC(*fs); fs++) {
retval = profile_open_file(*fs, &new_file);
/* if this file is missing, skip to the next */
- if (retval == ENOENT) {
+ if (retval == ENOENT || retval == EACCES) {
continue;
}
if (retval) {