summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/cvs/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c
index 1f03ab21760..b60e11e07d7 100644
--- a/usr.bin/cvs/util.c
+++ b/usr.bin/cvs/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.141 2008/03/08 22:15:30 tobias Exp $ */
+/* $OpenBSD: util.c,v 1.142 2008/03/09 01:58:00 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org>
@@ -534,7 +534,7 @@ cvs_mkadmin(const char *path, const char *root, const char *repo,
if (mkdir(buf, 0755) == -1 && errno != EEXIST)
fatal("cvs_mkadmin: %s: %s", buf, strerror(errno));
- if (cvs_cmdop == CVS_OP_CHECKOUT) {
+ if (cvs_cmdop == CVS_OP_CHECKOUT || cvs_cmdop == CVS_OP_ADD) {
(void)xsnprintf(buf, sizeof(buf), "%s/%s",
path, CVS_PATH_ROOTSPEC);