X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fcontext_read.c;h=1a584e4cb98e68e3ac46f61e2e3fc62fc349da2b;hp=6a1eea1259cfbaa94ac75a41232ff8abb3387525;hb=b47dac6540ed952b95dbdce78d2a5f48ff0db86b;hpb=b9d1fc0c85e9bd18e5e768913ba2c0a00f19876c diff --git a/sbr/context_read.c b/sbr/context_read.c index 6a1eea12..1a584e4c 100644 --- a/sbr/context_read.c +++ b/sbr/context_read.c @@ -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)