summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/util.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2017-06-01 08:08:25 +0000
committerJoris Vink <joris@cvs.openbsd.org>2017-06-01 08:08:25 +0000
commit550e39d44e12ce93d0c6f866d36bc7607dad6a05 (patch)
tree76bf855c9543b881dd06e9e7546719be13b85099 /usr.bin/cvs/util.c
parenta370b2e764407f644a4a9249e7f58cad0ec01915 (diff)
Stop looking at current_cvsroot->cr_method to figure out if we're remote or not.
Instead use cvsroot_is_local() and cvsroot_is_remote().
Diffstat (limited to 'usr.bin/cvs/util.c')
-rw-r--r--usr.bin/cvs/util.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c
index 3ae2dd366e7..757c07a8663 100644
--- a/usr.bin/cvs/util.c
+++ b/usr.bin/cvs/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.159 2016/10/13 20:51:25 fcambus Exp $ */
+/* $OpenBSD: util.c,v 1.160 2017/06/01 08:08:24 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org>
@@ -574,8 +574,7 @@ cvs_mkpath(const char *path, char *tag)
hd.h_data = NULL;
hash_table_enter(&created_directories, &hd);
- if (current_cvsroot->cr_method != CVS_METHOD_LOCAL ||
- cvs_server_active == 1)
+ if (cvsroot_is_remote() || cvs_server_active == 1)
cvs_validate_directory(path);
dir = xstrdup(path);
@@ -663,8 +662,7 @@ cvs_mkdir(const char *path, mode_t mode)
size_t len;
char *sp, *dp, *dir, rpath[PATH_MAX];
- if (current_cvsroot->cr_method != CVS_METHOD_LOCAL ||
- cvs_server_active == 1)
+ if (cvsroot_is_remote() || cvs_server_active == 1)
cvs_validate_directory(path);
dir = xstrdup(path);