summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/file.c
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2008-01-21 16:36:47 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2008-01-21 16:36:47 +0000
commit15898420b698ef6903c46af4084c532aeb09cc81 (patch)
tree1cb38fa4340dee984513f42b3b6233b86260c637 /usr.bin/cvs/file.c
parent0e676bb7aa999a2d725c7a7655fe84ee5e6e77f2 (diff)
Fixed export to be fully functional and compliant to GNU cvs in local and
remote setups. OK xsa@
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r--usr.bin/cvs/file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c
index 749c33ca662..20ad6350a08 100644
--- a/usr.bin/cvs/file.c
+++ b/usr.bin/cvs/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.209 2008/01/10 11:21:34 tobias Exp $ */
+/* $OpenBSD: file.c,v 1.210 2008/01/21 16:36:46 tobias Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
@@ -371,14 +371,14 @@ cvs_file_walkdir(struct cvs_file *cf, struct cvs_recursion *cr)
/*
* If we do not have a admin directory inside here, dont bother,
- * unless we are running import.
+ * unless we are running export, import, rlog or rtag.
*/
(void)xsnprintf(fpath, MAXPATHLEN, "%s/%s", cf->file_path,
CVS_PATH_CVSDIR);
l = stat(fpath, &st);
- if (cvs_cmdop != CVS_OP_IMPORT && cvs_cmdop != CVS_OP_RLOG &&
- cvs_cmdop != CVS_OP_RTAG &&
+ if (cvs_cmdop != CVS_OP_EXPORT && cvs_cmdop != CVS_OP_IMPORT &&
+ cvs_cmdop != CVS_OP_RLOG && cvs_cmdop != CVS_OP_RTAG &&
(l == -1 || (l == 0 && !S_ISDIR(st.st_mode)))) {
return;
}