diff options
author | 2005-04-21 19:06:06 +0000 | |
---|---|---|
committer | 2005-04-21 19:06:06 +0000 | |
commit | c8b8aadf69c8ce67f20c7f636ee48d448d26d37a (patch) | |
tree | 48be576d88a3087844df43d805b0ad987141397f | |
parent | add checks for files still physically present that should be removed; (diff) | |
download | wireguard-openbsd-c8b8aadf69c8ce67f20c7f636ee48d448d26d37a.tar.xz wireguard-openbsd-c8b8aadf69c8ce67f20c7f636ee48d448d26d37a.zip |
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.c | 8 |
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)); |