]> git.marmaro.de Git - mmh/blobdiff - sbr/context_read.c
add one more hint for developers, to explicitly point at docs/README.developers
[mmh] / sbr / context_read.c
index 6a1eea1259cfbaa94ac75a41232ff8abb3387525..1a584e4cb98e68e3ac46f61e2e3fc62fc349da2b 100644 (file)
@@ -38,6 +38,13 @@ context_read (void)
     register   struct  passwd  *pw;            /* getpwuid() results */
     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)