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/remove.c | |
parent | b7f424bf063934bb2d18aaa8573e5c818abcd8e7 (diff) |
correct wrong error code usage.
ok jfb@, xsa@
Diffstat (limited to 'usr.bin/cvs/remove.c')
-rw-r--r-- | usr.bin/cvs/remove.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/remove.c b/usr.bin/cvs/remove.c index 370c51dc98e..44090d881e6 100644 --- a/usr.bin/cvs/remove.c +++ b/usr.bin/cvs/remove.c @@ -1,4 +1,4 @@ -/* $OpenBSD: remove.c,v 1.14 2005/05/20 19:58:03 xsa Exp $ */ +/* $OpenBSD: remove.c,v 1.15 2005/05/20 20:00:53 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * Copyright (c) 2004 Xavier Santolaria <xsa@openbsd.org> @@ -103,6 +103,9 @@ cvs_remove_file(CVSFILE *cf, void *arg) CVS_FILE_NAME(cf)); else ret = cvs_senddir(root, cf); + + if (ret == -1) + ret = CVS_EX_PROTO; } return (ret); |