Skip to content

Commit

Permalink
ticket: 5510
Browse files Browse the repository at this point in the history
version_fixed: 1.6.1

pull up r19400 from trunk

 r19400@cathode-dark-space:  lxs | 2007-04-05 16:33:40 -0400
 ticket: new
 subject: krb5int_open_plugin_dirs errors out if directory does not exist
 
 If one of the directories in the list doesn't exist and no filenames are
 passed in because opendir fails and then the code gets an error.  opendir()
 failing should not be a fatal error.  The function should just move on to
 the next directory.
 



git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@19417 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information
tlyu committed Apr 10, 2007
1 parent fbeb00f commit 2c03e38
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/util/support/plugins.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,17 +455,9 @@ krb5int_open_plugin_dirs (const char * const *dirnames,
} else {
/* load all plugins in each directory */
#ifndef _WIN32
DIR *dir = NULL;
DIR *dir = opendir (dirnames[i]);

if (!err) {
dir = opendir(dirnames[i]);
if (dir == NULL) {
err = errno;
Tprintf ("-> error %d/%s\n", err, strerror (err));
}
}

while (!err) {
while (dir != NULL && !err) {
struct dirent *d = NULL;
char *filepath = NULL;
struct plugin_file_handle *handle = NULL;
Expand Down

0 comments on commit 2c03e38

Please sign in to comment.