diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/vac/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/vac/file.c b/src/cmd/vac/file.c index 893d6a82..5f177d65 100644 --- a/src/cmd/vac/file.c +++ b/src/cmd/vac/file.c @@ -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; |