X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b9d1fc0c85e9bd18e5e768913ba2c0a00f19876c..29d590d74c6e03f5efe9f743c40a61028ccd491d:/sbr/context_read.c diff --git a/sbr/context_read.c b/sbr/context_read.c index 6a1eea12..32051c52 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.