=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/file.c,v retrieving revision 1.260 retrieving revision 1.261 diff -u -r1.260 -r1.261 --- src/usr.bin/cvs/file.c 2010/07/23 21:46:05 1.260 +++ src/usr.bin/cvs/file.c 2010/09/27 14:08:41 1.261 @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.260 2010/07/23 21:46:05 ray Exp $ */ +/* $OpenBSD: file.c,v 1.261 2010/09/27 14:08:41 joshe Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2004 Jean-Francois Brousseau @@ -596,7 +596,8 @@ xsnprintf(fpath, sizeof(fpath), "%s/%s", cf->file_path, CVS_PATH_STATICENTRIES); - if (stat(fpath, &st) == -1 || build_dirs == 1) + if (!(cmdp->cmd_flags & CVS_USE_WDIR) || + stat(fpath, &st) == -1 || build_dirs == 1) cvs_repository_getdir(repo, cf->file_path, &fl, &dl, (cr->flags & CR_RECURSE_DIRS) ? REPOSITORY_DODIRS : 0);