summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}