=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/update.c,v retrieving revision 1.156 retrieving revision 1.157 diff -u -r1.156 -r1.157 --- src/usr.bin/cvs/update.c 2008/06/28 13:10:02 1.156 +++ src/usr.bin/cvs/update.c 2009/02/21 14:50:53 1.157 @@ -1,4 +1,4 @@ -/* $OpenBSD: update.c,v 1.156 2008/06/28 13:10:02 joris Exp $ */ +/* $OpenBSD: update.c,v 1.157 2009/02/21 14:50:53 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * @@ -525,7 +525,7 @@ cvs_log(LP_TRACE, "update_has_conflict_markers(%s)", cf->file_path); - if (cf->fd == -1 || cf->file_ent == NULL) + if (!(cf->file_flags & FILE_ON_DISK) || cf->file_ent == NULL) return (0); bp = cvs_buf_load_fd(cf->fd); @@ -642,7 +642,7 @@ } if (rev1 == NULL || !strcmp(state1, RCS_STATE_DEAD)) { - if (cf->fd != -1) { + if (cf->file_flags & FILE_ON_DISK) { cvs_printf("%s exists but has been added in %s\n", cf->file_path, jrev2); } else { @@ -656,7 +656,7 @@ if (!rcsnum_cmp(rev1, rev2, 0)) goto out; - if (cf->fd == -1) { + if (!(cf->file_flags & FILE_ON_DISK)) { cvs_printf("%s does not exist but is present in %s\n", cf->file_path, jrev2); goto out;