summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-04-21 19:06:07 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-04-21 19:06:07 +0000
commitbe9305853eb2aa58ebc34359721c1cfac0be0bad (patch)
tree9ab8e65c892a57a68a42106fa33931726b9cb710
parent8f1763f6f1b91d96d8a6881f64c9062a675fc605 (diff)
better include the cvs_sendfile() req in the conditional statement so
it behaves like expected.. pointed out by joris@.
-rw-r--r--usr.bin/cvs/remove.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/cvs/remove.c b/usr.bin/cvs/remove.c
index 51fb1be6a0f..54b04e2c7af 100644
--- a/usr.bin/cvs/remove.c
+++ b/usr.bin/cvs/remove.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: remove.c,v 1.10 2005/04/21 18:54:50 xsa Exp $ */
+/* $OpenBSD: remove.c,v 1.11 2005/04/21 19:06:06 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2004 Xavier Santolaria <xsa@openbsd.org>
@@ -131,10 +131,10 @@ cvs_remove_file(CVSFILE *cf, void *arg)
CVS_FILE_NAME(cf)) < 0) {
return (CVS_EX_PROTO);
}
- }
- if (cvs_sendfile(root, fpath) < 0)
- return (CVS_EX_PROTO);
+ if (cvs_sendfile(root, fpath) < 0)
+ return (CVS_EX_PROTO);
+ }
} else {
cvs_log(LP_INFO, "scheduling file `%s' for removal",
CVS_FILE_NAME(cf));