mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
Bug checking vacfileisdir return value. (Michael Kaminsky)
This commit is contained in:
parent
2cb7bf889f
commit
9fb10d4386
1 changed files with 1 additions and 1 deletions
|
@ -787,7 +787,7 @@ vacfilegetdir(VacFile *f, VacDir *dir)
|
||||||
vdcopy(dir, &f->dir);
|
vdcopy(dir, &f->dir);
|
||||||
filemetaunlock(f);
|
filemetaunlock(f);
|
||||||
|
|
||||||
if(vacfileisdir(f) < 0){
|
if(!vacfileisdir(f)){
|
||||||
if(vtfilelock(f->source, VtOREAD) < 0){
|
if(vtfilelock(f->source, VtOREAD) < 0){
|
||||||
filerunlock(f);
|
filerunlock(f);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue