=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/file.c,v retrieving revision 1.250 retrieving revision 1.251 diff -c -r1.250 -r1.251 *** src/usr.bin/cvs/file.c 2009/02/21 12:47:19 1.250 --- src/usr.bin/cvs/file.c 2009/02/21 13:44:18 1.251 *************** *** 1,4 **** ! /* $OpenBSD: file.c,v 1.250 2009/02/21 12:47:19 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2004 Jean-Francois Brousseau --- 1,4 ---- ! /* $OpenBSD: file.c,v 1.251 2009/02/21 13:44:18 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2004 Jean-Francois Brousseau *************** *** 585,591 **** if (stat(fpath, &st) == -1 || build_dirs == 1) cvs_repository_getdir(repo, cf->file_path, &fl, &dl, ! (cr->flags & CR_RECURSE_DIRS)); } cvs_file_walklist(&fl, cr); --- 585,592 ---- if (stat(fpath, &st) == -1 || build_dirs == 1) cvs_repository_getdir(repo, cf->file_path, &fl, &dl, ! (cr->flags & CR_RECURSE_DIRS) ? ! REPOSITORY_DODIRS : 0); } cvs_file_walklist(&fl, cr); *************** *** 760,765 **** --- 761,769 ---- server_has_file = 1; ismodified = 0; } + + if ((server_has_file == 1) || (cf->fd != -1)) + cf->file_flags |= FILE_ON_DISK; if (ismodified == 1 && cf->fd != -1 && cf->file_rcs != NULL && cf->file_ent != NULL && !RCSNUM_ISBRANCH(cf->file_ent->ce_rev) &&