X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/19bf8698eeb0ab3d7694232af115fa3f007d5c7b..ab8a3e14f2578d286b01a6bdb44ca1589e0ea442:/sbr/context_read.c diff --git a/sbr/context_read.c b/sbr/context_read.c index 8f63fedf..80340688 100644 --- a/sbr/context_read.c +++ b/sbr/context_read.c @@ -65,6 +65,8 @@ context_read (void) if ((cp = getenv("MH")) && *cp != '\0') { defpath = path(cp, TFILE); + /* defpath is an absolute path; make sure that always MH is, too. */ + setenv("MH", defpath, 1); 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);