From bdffdb03696ec48c6085d916514e0fb4948f33f9 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Thu, 17 Aug 1995 14:31:52 +0000 Subject: [PATCH] If asSetFilename is given NULL argument then next call to asInit turns off access security. Allow character '-' in pvnames. --- src/as/asDbLib.c | 5 ++++- src/as/asLib_lex.l | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/as/asDbLib.c b/src/as/asDbLib.c index a04d220f5..dc23ef2b8 100644 --- a/src/as/asDbLib.c +++ b/src/as/asDbLib.c @@ -148,13 +148,16 @@ static long asInitCommon(void) long status; char buffer[BUF_SIZE]; - if(!pacf) return(0); if(asLockInit) { FASTLOCKINIT(&asLock); asLockInit = FALSE; } FASTLOCK(&asLock); if(asActive)asCaStop(); + if(!pacf) { + asActive = FALSE; + return(0); + } buffer[0] = 0; my_buffer = buffer; my_buffer_ptr = my_buffer; diff --git a/src/as/asLib_lex.l b/src/as/asLib_lex.l index eb716c4d3..43f1d23bd 100644 --- a/src/as/asLib_lex.l +++ b/src/as/asLib_lex.l @@ -1,6 +1,6 @@ integer [0-9] name [a-zA-Z0-9_\.] -pvname [a-zA-Z0-9_:\.\[\]<>;] +pvname [a-zA-Z0-9_\-:\.\[\]<>;] string [a-zA-Z0-9_\,\./\*#\[\]%: ;!|\'\-&\(\)@\?\+<>=\$] %{