X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fcontext_read.c;h=4f744997fd03c07b732456645f199c0f12dab1c3;hp=0995d4faa78c0da8422a29e5d34660fa534e1f02;hb=d39e2c447b0d163a5a63f480b23d06edb7a73aa0;hpb=6e8aba3714fe8ffc21dbb75ea9efdc41ab87b07f diff --git a/sbr/context_read.c b/sbr/context_read.c index 0995d4f..4f74499 100644 --- a/sbr/context_read.c +++ b/sbr/context_read.c @@ -64,13 +64,13 @@ context_read(void) */ if ((cp = getenv("MH")) && *cp != '\0') { - defpath = path(cp, TFILE); + defpath = getcpy(expanddir(cp)); - if (stat(defpath, &st) != -1 && (st.st_mode & S_IFREG) == 0) - adios((char *)0, "`%s' specified by your MH environment variable is not a normal file", cp); + if (stat(defpath, &st) != -1 && (st.st_mode & S_IFREG) == 0) + adios((char *)0, "`%s' specified by your MH environment variable is not a normal file", cp); - if ((ib = fopen(defpath, "r")) == (FILE *)0) - adios((char *)0, "unable to read the `%s' profile specified by your MH environment variable", defpath); + if ((ib = fopen(defpath, "r")) == (FILE *)0) + adios((char *)0, "unable to read the `%s' profile specified by your MH environment variable", defpath); } else { defpath = concat(mypath, "/", mh_profile, NULL); @@ -134,7 +134,7 @@ context_read(void) return; } - ctxpath = getcpy(m_maildir(cp)); + ctxpath = getcpy(toabsdir(cp)); if ((ib = lkfopen(ctxpath, "r"))) { readconfig((struct node **) 0, ib, cp, 1);