diff options
author | rsc <devnull@localhost> | 2007-01-18 18:26:00 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2007-01-18 18:26:00 +0000 |
commit | 9fb10d4386a239907682fd73d5c468cccb1d2135 (patch) | |
tree | 55441c5e007426cda0de6e66814e6db67084323a /src/cmd/vac | |
parent | 2cb7bf889fdadeeea1bc4683baee6a08de3fa87c (diff) | |
download | plan9port-9fb10d4386a239907682fd73d5c468cccb1d2135.tar.gz plan9port-9fb10d4386a239907682fd73d5c468cccb1d2135.tar.bz2 plan9port-9fb10d4386a239907682fd73d5c468cccb1d2135.zip |
Bug checking vacfileisdir return value. (Michael Kaminsky)
Diffstat (limited to 'src/cmd/vac')
-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; |