From 86e4be2f04cbab921737fd9a6bf5c77a3430afd5 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Fri, 16 Feb 1996 19:26:20 +0000 Subject: [PATCH] Dont use path if filename contains / --- src/dbStatic/dbLexRoutines.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/dbStatic/dbLexRoutines.c b/src/dbStatic/dbLexRoutines.c index 8b46b39be..2e7d1ebba 100644 --- a/src/dbStatic/dbLexRoutines.c +++ b/src/dbStatic/dbLexRoutines.c @@ -140,10 +140,7 @@ static char *dbOpenFile(DBBASE *pdbbase,const char *filename,FILE **fp) *fp = 0; if(!filename) return(0); - if(!ppathList - || (ellCount(ppathList)==0) - || filename[0]=='/' - || (filename[0]=='.' && (filename[1]=='.' || filename[1]=='/')) ) { + if(!ppathList || (ellCount(ppathList)==0) || strchr(filename,'/') { *fp = fopen(filename,"r"); return(0); }