mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +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);
|
||||
filemetaunlock(f);
|
||||
|
||||
if(vacfileisdir(f) < 0){
|
||||
if(!vacfileisdir(f)){
|
||||
if(vtfilelock(f->source, VtOREAD) < 0){
|
||||
filerunlock(f);
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue