summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/entries.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2004-08-31 12:25:51 +0000
committerjoris <joris@openbsd.org>2004-08-31 12:25:51 +0000
commit9e9d6a4b013a9fdc75aefde27354db91a6c98e6f (patch)
treeb38da23146a5db62a2a13daa985b0b95e98f2a8d /usr.bin/cvs/entries.c
parentDo not crash when there is no user specified in the CVSROOT. Simplified (diff)
downloadwireguard-openbsd-9e9d6a4b013a9fdc75aefde27354db91a6c98e6f.tar.xz
wireguard-openbsd-9e9d6a4b013a9fdc75aefde27354db91a6c98e6f.zip
use the correct Entries path to store in cef_path;
ok jfb
Diffstat (limited to 'usr.bin/cvs/entries.c')
-rw-r--r--usr.bin/cvs/entries.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/entries.c b/usr.bin/cvs/entries.c
index c8635a8868a..744c5e77b09 100644
--- a/usr.bin/cvs/entries.c
+++ b/usr.bin/cvs/entries.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: entries.c,v 1.16 2004/08/27 15:44:38 jfb Exp $ */
+/* $OpenBSD: entries.c,v 1.17 2004/08/31 12:25:51 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -99,7 +99,7 @@ cvs_ent_open(const char *dir, int flags)
}
memset(ep, 0, sizeof(*ep));
- ep->cef_path = strdup(dir);
+ ep->cef_path = strdup(entpath);
if (ep->cef_path == NULL) {
cvs_log(LP_ERRNO, "failed to copy Entries path");
free(ep);