summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/init.c
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-07-30 23:12:14 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-07-30 23:12:14 +0000
commita02fcf948076ab3705129493ccd3c26346d8f004 (patch)
treeab9c1a5b811615b01624e2f6498384d16361ebd0 /usr.bin/cvs/init.c
parent9ed597bcd3162ff9b35b27c1c8886daeacf87304 (diff)
Remove remaining references to cvs_root
Diffstat (limited to 'usr.bin/cvs/init.c')
-rw-r--r--usr.bin/cvs/init.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/cvs/init.c b/usr.bin/cvs/init.c
index ba1a93f3051..dfd1466d0ff 100644
--- a/usr.bin/cvs/init.c
+++ b/usr.bin/cvs/init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init.c,v 1.3 2004/07/29 18:23:25 jfb Exp $ */
+/* $OpenBSD: init.c,v 1.4 2004/07/30 23:12:13 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -83,12 +83,15 @@ cvs_init(int argc, char **argv)
char path[MAXPATHLEN];
RCSFILE *rfp;
struct stat st;
+ struct cvsroot *root;
if (argc != 1)
return (EX_USAGE);
+ root = cvsroot_get(".");
+
for (i = 0; i < sizeof(cvsroot_files)/sizeof(cvsroot_files[i]); i++) {
- snprintf(path, sizeof(path), "%s/%s", cvs_root->cr_dir,
+ snprintf(path, sizeof(path), "%s/%s", root->cr_dir,
cvsroot_files[i].cf_path);
if (cvsroot_files[i].cf_type == CFT_DIR) {