diff options
author | 2004-12-03 20:19:54 +0000 | |
---|---|---|
committer | 2004-12-03 20:19:54 +0000 | |
commit | 115bcca6dc78f06c17dc0866376722f06e376c94 (patch) | |
tree | 968b70b51e6dbec3a2cee568c560c1e78278009d | |
parent | Rename variables to make more sense and fix a warning about assigning (diff) | |
download | wireguard-openbsd-115bcca6dc78f06c17dc0866376722f06e376c94.tar.xz wireguard-openbsd-115bcca6dc78f06c17dc0866376722f06e376c94.zip |
If the timestamp in the Entries file is larger than the file's
timestamp, consider the file to be up to date.
-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; |