summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c
index db9683263a5..d13aa54734c 100644
--- a/usr.bin/cvs/file.c
+++ b/usr.bin/cvs/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.244 2008/06/12 07:29:54 joris Exp $ */
+/* $OpenBSD: file.c,v 1.245 2008/06/12 16:54:46 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
@@ -294,7 +294,8 @@ cvs_file_walklist(struct cvs_flisthead *fl, struct cvs_recursion *cr)
* During checkout -p, do not use any locally
* available directories.
*/
- if (cvs_cmdop != CVS_OP_CHECKOUT && !print_stdout)
+ if ((cmdp->cmd_flags & CVS_USE_WDIR) &&
+ (cvs_cmdop != CVS_OP_CHECKOUT || !print_stdout))
if (stat(d, &st) == -1) {
cvs_log(LP_ERRNO, "%s", d);
goto next;