diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2005-05-20 16:57:32 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2005-05-20 16:57:32 +0000 |
commit | 0a5569a1291b3adcb61d519d4f716e6c80852b96 (patch) | |
tree | 83c11ceeff3575dbd1fbd8a0c1f437d03647a976 /usr.bin | |
parent | 0c0f9031d30be4986bbc0f976489786068b7c61c (diff) |
return CVS_EX_PROTO on protocol errors
ok joris
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/getlog.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/cvs/getlog.c b/usr.bin/cvs/getlog.c index a7d64026131..6f2d9a5c013 100644 --- a/usr.bin/cvs/getlog.c +++ b/usr.bin/cvs/getlog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getlog.c,v 1.26 2005/05/19 16:11:10 xsa Exp $ */ +/* $OpenBSD: getlog.c,v 1.27 2005/05/20 16:57:31 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -149,9 +149,8 @@ cvs_getlog_remote(CVSFILE *cf, void *arg) cvs_file_getpath(cf, fpath, sizeof(fpath)); - if (cvs_sendentry(root, cf) < 0) { - return (-1); - } + if (cvs_sendentry(root, cf) < 0) + return (CVS_EX_PROTO); switch (cf->cf_cvstat) { case CVS_FST_UNKNOWN: @@ -168,6 +167,8 @@ cvs_getlog_remote(CVSFILE *cf, void *arg) break; } + if (ret == -1) + ret = CVS_EX_PROTO; return (ret); } |