From: joris Date: Sat, 14 Jul 2018 21:28:02 +0000 (+0000) Subject: don't run cvs_client_sendfile() if its file_type is CVS_DIR, but do not X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2314050ca45d4a0007c6eb162a1d04111bb55a03;p=openbsd 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. --- 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 * @@ -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) {