better error message if asInit fails

This commit is contained in:
Marty Kraimer
1999-07-08 14:36:37 +00:00
parent 19bb952d60
commit 829a134d7e

View File

@@ -114,7 +114,11 @@ static long asInitCommon(void)
firstTime = FALSE;
if(!pacf) return(0); /*access security will NEVER be turned on*/
} else {
if(!asActive) return(S_asLib_asNotActive);
if(!asActive) {
printf("Access security is NOT enabled."
" Was asSetFilename specified before iocInit?\n");
return(S_asLib_asNotActive);
}
if(pacf) {
asCaStop();
} else { /*Just leave everything as is */
@@ -131,9 +135,6 @@ static long asInitCommon(void)
int asInit(void)
{
/*If no access configuration file defined return success*/
if(!pacf) return(0);
return(asInitCommon());
}