#include <errno.h> /* system call errors */
#include <pwd.h> /* structure for getpwuid() results */
-extern int errno; /* system call error number */
-
void
context_read (void)
{
ctxpath = getcpy (m_maildir (cp));
- if ((ib = fopen (ctxpath, "r"))) {
+ if ((ib = lkfopen (ctxpath, "r"))) {
readconfig ((struct node **) 0, ib, cp, 1);
- fclose (ib);
+ lkfclose (ib, ctxpath);
}
return;