summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2006-07-08 01:02:04 +0000
committerJoris Vink <joris@cvs.openbsd.org>2006-07-08 01:02:04 +0000
commit96713eee79aae352bf1061ba3a859db7aac8ab91 (patch)
tree12c1f2dfdea738e56686ca4b090eb1c35d0f9724 /usr.bin/cvs
parenta46fceb5b50ca81049864a9aefb8b458f1ca6384 (diff)
handle "." special in client_check_directory();
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/client.c b/usr.bin/cvs/client.c
index 04135d775b0..9e09f74be79 100644
--- a/usr.bin/cvs/client.c
+++ b/usr.bin/cvs/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.10 2006/07/08 00:34:20 joris Exp $ */
+/* $OpenBSD: client.c,v 1.11 2006/07/08 01:02:03 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -138,6 +138,9 @@ client_check_directory(char *data)
if ((parent = dirname(data)) == NULL)
fatal("client_check_directory: overflow");
+ if (!strcmp(parent, "."))
+ return;
+
entry = xmalloc(CVS_ENT_MAXLINELEN);
l = snprintf(entry, CVS_ENT_MAXLINELEN, "D/%s////", base);
if (l == -1 || l >= CVS_ENT_MAXLINELEN)