commit 9ae50083867061b73bf74ed0ee713a7e022ba3c6
parent 9fb10d4386a239907682fd73d5c468cccb1d2135
Author: rsc <devnull@localhost>
Date: Thu, 18 Jan 2007 18:26:56 +0000
More return value fixes (Michael Kaminsky)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/vac/vac.c b/src/cmd/vac/vac.c
@@ -538,7 +538,7 @@ vacdata(DirSink *dsink, int fd, char *lname, VacFile *vf, Dir *dir)
if(vd.mtime == dir->mtime)
if(vd.size == dir->length)
if(!vd.plan9 || /* vd.p9path == dir->qid.path && */ vd.p9version == dir->qid.vers)
- if(dirsinkwritefile(dsink, vf)) {
+ if(dirsinkwritefile(dsink, vf) >= 0) {
stats.sfile++;
vdcleanup(&vd);
return;