diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2018-07-14 21:28:03 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2018-07-14 21:28:03 +0000 |
commit | d0a1baa1a13fb5ad799c57ef657cf80cdc9180b0 (patch) | |
tree | 5c32add2ad81c3efdb31d349c473e43cb5afcf32 /usr.bin/cvs/client.c | |
parent | d68a77ba2623931be645a7ba5063a7c4ea24e90a (diff) |
don't run cvs_client_sendfile() if its file_type is CVS_DIR, but do not
depend on it being CVS_FILE explicitly.
unbreaks remote operations on removed files.
Diffstat (limited to 'usr.bin/cvs/client.c')
-rw-r--r-- | usr.bin/cvs/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/client.c b/usr.bin/cvs/client.c index 56dafef8e01..972184e8ecb 100644 --- a/usr.bin/cvs/client.c +++ b/usr.bin/cvs/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.127 2017/08/21 16:45:13 millert Exp $ */ +/* $OpenBSD: client.c,v 1.128 2018/07/14 21:28:02 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -458,7 +458,7 @@ cvs_client_sendfile(struct cvs_file *cf) cvs_client_senddir(cf->file_wd); cvs_remote_classify_file(cf); - if (cf->file_type != CVS_FILE) + if (cf->file_type == CVS_DIR) return; if (cf->file_ent != NULL && cvs_cmdop != CVS_OP_IMPORT) { |