From 6d313b915041608634bfab48d752352dca664429 Mon Sep 17 00:00:00 2001 From: Jean-Francois Brousseau Date: Fri, 3 Dec 2004 20:19:55 +0000 Subject: If the timestamp in the Entries file is larger than the file's timestamp, consider the file to be up to date. --- usr.bin/cvs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/cvs') diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c index 7ecdb3fa22c..2e14bd53412 100644 --- a/usr.bin/cvs/file.c +++ b/usr.bin/cvs/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.35 2004/12/02 06:54:15 jfb Exp $ */ +/* $OpenBSD: file.c,v 1.36 2004/12/03 20:19:54 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -898,7 +898,7 @@ cvs_file_lget(const char *path, int flags, CVSFILE *parent) cfp->cf_cvstat = CVS_FST_ADDED; else { /* check last modified time */ - if (ent->ce_mtime == (time_t)st.st_mtime) + if (ent->ce_mtime >= (time_t)st.st_mtime) cfp->cf_cvstat = CVS_FST_UPTODATE; else cfp->cf_cvstat = CVS_FST_MODIFIED; -- cgit v1.2.3