=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/remote.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- src/usr.bin/cvs/remote.c 2009/04/02 20:57:47 1.27 +++ src/usr.bin/cvs/remote.c 2009/04/07 21:27:45 1.28 @@ -1,4 +1,4 @@ -/* $OpenBSD: remote.c,v 1.27 2009/04/02 20:57:47 joris Exp $ */ +/* $OpenBSD: remote.c,v 1.28 2009/04/07 21:27:45 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * @@ -249,10 +249,15 @@ cf->file_ent = cvs_ent_get(entlist, cf->file_name); if (cf->file_ent != NULL && cf->file_ent->ce_status != CVS_ENT_REG) { - if (cf->file_ent->ce_status == CVS_ENT_ADDED) - cf->file_status = FILE_ADDED; - else + if (cf->file_ent->ce_status == CVS_ENT_ADDED) { + if (cf->fd != -1) + cf->file_status = FILE_ADDED; + else + cf->file_status = FILE_UNKNOWN; + } else { cf->file_status = FILE_REMOVED; + } + return; }