summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2008-03-09 00:36:30 +0000
committertobias <tobias@openbsd.org>2008-03-09 00:36:30 +0000
commitdd9abc5145bea8feed134bf8f68cdf96a86b8c8b (patch)
treeac6180c9d9a9f3e56223e3f19cf4a9dae6f76d53
parentAdd vcons(4). (diff)
downloadwireguard-openbsd-dd9abc5145bea8feed134bf8f68cdf96a86b8c8b.tar.xz
wireguard-openbsd-dd9abc5145bea8feed134bf8f68cdf96a86b8c8b.zip
Prevent sending of "Directory" messages for arguments in remote setup if
the specified files (or directories) do not exist. ok joris
-rw-r--r--usr.bin/cvs/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/client.c b/usr.bin/cvs/client.c
index 943722e7af1..60dc4f733fc 100644
--- a/usr.bin/cvs/client.c
+++ b/usr.bin/cvs/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.109 2008/03/08 20:52:36 tobias Exp $ */
+/* $OpenBSD: client.c,v 1.110 2008/03/09 00:36:30 tobias Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -457,7 +457,7 @@ cvs_client_sendfile(struct cvs_file *cf)
struct tm *datetm;
char rev[CVS_REV_BUFSZ], timebuf[CVS_TIME_BUFSZ], sticky[CVS_REV_BUFSZ];
- if (cf->file_type != CVS_FILE)
+ if (cf->file_type != CVS_FILE || (cf->fd == -1 && cf->file_ent == NULL))
return;
cvs_client_senddir(cf->file_wd);