X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/544d69c657e0d33176b47afc9288ce0a588aff6d..94187a80bd60baab4b9c4b949ad820d730578123:/sbr/context_read.c diff --git a/sbr/context_read.c b/sbr/context_read.c index 936bf2dd..a8d14202 100644 --- a/sbr/context_read.c +++ b/sbr/context_read.c @@ -23,6 +23,8 @@ #include /* mh internals */ #include "lock_file.h" +#include "m_maildir.h" +#include "makedir.h" #include /* structure for getpwuid() results */ void @@ -51,8 +53,7 @@ context_read (void) if ((mypath = getenv("HOME")) == NULL) { if ((pw = getpwuid(getuid())) == NULL || *pw->pw_dir == '\0') adios(NULL, "cannot determine your home directory"); - else - mypath = pw->pw_dir; + mypath = pw->pw_dir; } /* @@ -139,7 +140,7 @@ context_read (void) ctxpath = getcpy (m_maildir (cp)); if ((ib = lkfopendata (ctxpath, "r", &failed_to_lock))) { - readconfig ((struct node **) 0, ib, cp, 1); + readconfig(NULL, ib, cp, 1); lkfclosedata (ib, ctxpath); } }