Bandaid for a buffer overrun in the module searching code. When breaking

up the module_path string, we would walk one past the end of the buffer.
This hurting ia64 originally, but it was probably also happening on i386
occasionally as well.  The effects were usually harmless, it would add
bogus "binary" search directories to the places it actually looked for
files.
This commit is contained in:
Peter Wemm 2002-04-11 10:00:44 +00:00
parent 2ab188f529
commit 31c41f1b1e

View File

@ -937,6 +937,8 @@ moduledir_rebuild(void)
mdp->d_flags = 0;
STAILQ_INSERT_TAIL(&moduledir_list, mdp, d_link);
}
if (*ep == 0)
break;
}
/*
* Delete unused directories if any