From 9fb10d4386a239907682fd73d5c468cccb1d2135 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 18 Jan 2007 18:26:00 +0000 Subject: Bug checking vacfileisdir return value. (Michael Kaminsky) --- src/cmd/vac/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3