X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fcontext_read.c;h=a655effc41bc20d54ac6cadebd9a1103c838df7f;hb=mmh-start;hp=6a1eea1259cfbaa94ac75a41232ff8abb3387525;hpb=b9d1fc0c85e9bd18e5e768913ba2c0a00f19876c;p=mmh diff --git a/sbr/context_read.c b/sbr/context_read.c index 6a1eea1..a655eff 100644 --- a/sbr/context_read.c +++ b/sbr/context_read.c @@ -1,8 +1,6 @@ /* * context_read.c -- find and read profile and context files * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -39,6 +37,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 +111,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)