summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2008-01-31 10:17:48 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2008-01-31 10:17:48 +0000
commitea0ee432b6d9a05c7ff18cd90304ca91cf56006e (patch)
tree71a39d09161bdf2a4368c53febe501c7a0d365b2
parentc9627e39af420c1876b74e97d6e0d257395aaed1 (diff)
Our directory entries in CVS/Entries had one slash too much -- zapped.
OK xsa@
-rw-r--r--usr.bin/cvs/add.c6
-rw-r--r--usr.bin/cvs/util.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/cvs/add.c b/usr.bin/cvs/add.c
index 18b0fd68b87..81fefeee44b 100644
--- a/usr.bin/cvs/add.c
+++ b/usr.bin/cvs/add.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: add.c,v 1.88 2008/01/31 10:15:05 tobias Exp $ */
+/* $OpenBSD: add.c,v 1.89 2008/01/31 10:17:47 tobias Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -128,7 +128,7 @@ cvs_add_entry(struct cvs_file *cf)
if (cf->file_type == CVS_DIR) {
(void)xsnprintf(entry, CVS_ENT_MAXLINELEN,
- "D/%s/////", cf->file_name);
+ "D/%s////", cf->file_name);
entlist = cvs_ent_open(cf->file_wd);
cvs_ent_add(entlist, entry);
@@ -243,7 +243,7 @@ add_directory(struct cvs_file *cf)
p = xmalloc(CVS_ENT_MAXLINELEN);
(void)xsnprintf(p, CVS_ENT_MAXLINELEN,
- "D/%s/////", cf->file_name);
+ "D/%s////", cf->file_name);
entlist = cvs_ent_open(cf->file_wd);
cvs_ent_add(entlist, p);
cvs_ent_close(entlist, ENT_SYNC);
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c
index e5d76a25b2f..f0690b8052c 100644
--- a/usr.bin/cvs/util.c
+++ b/usr.bin/cvs/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.125 2008/01/21 16:36:46 tobias Exp $ */
+/* $OpenBSD: util.c,v 1.126 2008/01/31 10:17:47 tobias Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org>
@@ -627,7 +627,7 @@ cvs_mkpath(const char *path, char *tag)
if ((p = strchr(dp, '/')) != NULL)
*p = '\0';
ent = cvs_ent_open(rpath);
- xsnprintf(entry, sizeof(entry), "D/%s/////", dp);
+ xsnprintf(entry, sizeof(entry), "D/%s////", dp);
cvs_ent_add(ent, entry);
cvs_ent_close(ent, ENT_SYNC);
if (p != NULL)