* docs/MAIL.FILTERING: added note on removing procmail -f or
[mmh] / sbr / context_read.c
index 6a1eea1..1a584e4 100644 (file)
@@ -39,6 +39,13 @@ context_read (void)
     register   FILE            *ib;            /* profile and context file pointer */
 
     /*
+     *  If this routine _is_ called again (despite the wanings in the
+     *  comments above), return immediately.
+     */
+    if ( m_defs != 0 )
+        return;
+
+    /*
      * Find user's home directory.  Try the HOME environment variable first,
      * the home directory field in the password file if that's not found.
      */
@@ -106,7 +113,7 @@ context_read (void)
        free (cp);
 
        if (!makedir (nd))
-           adios (NULL, "unable to create", nd);
+           adios (NULL, "unable to create %s", nd);
     }
 
     else if ((st.st_mode & S_IFDIR) == 0)