/*
* context_read.c -- find and read profile and context files
*
- * $Id$
- *
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h> /* mh internals */
-#include <errno.h> /* system call errors */
#include <pwd.h> /* structure for getpwuid() results */
void
ctxpath = getcpy (m_maildir (cp));
- if ((ib = lkfopen (ctxpath, "r"))) {
+ if ((ib = lkfopendata (ctxpath, "r"))) {
readconfig ((struct node **) 0, ib, cp, 1);
- lkfclose (ib, ctxpath);
+ lkfclosedata (ib, ctxpath);
}
return;