Bug checking vacfileisdir return value. (Michael Kaminsky)

This commit is contained in:
rsc 2007-01-18 18:26:00 +00:00
parent 2cb7bf889f
commit 9fb10d4386

View file

@ -787,7 +787,7 @@ vacfilegetdir(VacFile *f, VacDir *dir)
vdcopy(dir, &f->dir);
filemetaunlock(f);
if(vacfileisdir(f) < 0){
if(!vacfileisdir(f)){
if(vtfilelock(f->source, VtOREAD) < 0){
filerunlock(f);
return -1;