summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-07-10 21:55:31 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-07-10 21:55:31 +0000
commit4ce831c06c4d44bc644e54d977bb4a2b0484e9d8 (patch)
treef5e0016db9c38270c944e2e5f306a0df6fdf0469
parent54f94ebedc12d3eed3e52ebabf731cb9ac3de44d (diff)
if cvs_sendreq() returns -1 we have to translate it into CVS_EX_PROTO,
so the user will know what is going on.
-rw-r--r--usr.bin/cvs/add.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/add.c b/usr.bin/cvs/add.c
index b181bf5aab1..7247edd92b1 100644
--- a/usr.bin/cvs/add.c
+++ b/usr.bin/cvs/add.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: add.c,v 1.22 2005/07/08 16:03:38 joris Exp $ */
+/* $OpenBSD: add.c,v 1.23 2005/07/10 21:55:30 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -135,6 +135,9 @@ cvs_add_remote(CVSFILE *cf, void *arg)
ret = cvs_sendreq(root, CVS_REQ_ISMODIFIED,
cf->cf_name);
+ if (ret == -1)
+ ret = CVS_EX_PROTO;
+
return (ret);
}