diff options
-rw-r--r-- | usr.bin/cvs/client.c | 5 |
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) |