diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-12-03 20:19:55 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-12-03 20:19:55 +0000 |
commit | 6d313b915041608634bfab48d752352dca664429 (patch) | |
tree | b2a91c72be93a11a1389873ab5f32127fafa2cfd /usr.bin/cvs | |
parent | 7f9b0a87d80ae1a19d18f5c85999730f9b63f9a5 (diff) |
If the timestamp in the Entries file is larger than the file's
timestamp, consider the file to be up to date.
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <jfb@openbsd.org> * 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; |