diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-05-20 20:00:54 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-05-20 20:00:54 +0000 |
commit | 810674bc8d2f234cd5f3edf64762ce5bbbd9eb07 (patch) | |
tree | 9ea6c1f81ec8083ee94186ff4c3b762b7c35963d /usr.bin/cvs/annotate.c | |
parent | b7f424bf063934bb2d18aaa8573e5c818abcd8e7 (diff) |
correct wrong error code usage.
ok jfb@, xsa@
Diffstat (limited to 'usr.bin/cvs/annotate.c')
-rw-r--r-- | usr.bin/cvs/annotate.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/cvs/annotate.c b/usr.bin/cvs/annotate.c index cff6c33ff5e..b92bbfca039 100644 --- a/usr.bin/cvs/annotate.c +++ b/usr.bin/cvs/annotate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: annotate.c,v 1.12 2005/05/20 18:32:23 jfb Exp $ */ +/* $OpenBSD: annotate.c,v 1.13 2005/05/20 20:00:53 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -140,6 +140,10 @@ cvs_annotate_file(CVSFILE *cf, void *arg) cf->cf_name); else ret = cvs_senddir(root, cf); + + if (ret == -1) + ret = CVS_EX_PROTO; + return (ret); } @@ -164,5 +168,8 @@ cvs_annotate_file(CVSFILE *cf, void *arg) break; } + if (ret == -1) + ret = CVS_EX_PROTO; + return (ret); } |