diff options
author | 2005-05-25 09:42:12 +0000 | |
---|---|---|
committer | 2005-05-25 09:42:12 +0000 | |
commit | a9b4ad30ad80f68a9dd996be17c70b6366c3f753 (patch) | |
tree | f57594446caf70f90c035d907dabd9140a66bbda | |
parent | when importing a file in local mode, add the first two revisions (diff) | |
download | wireguard-openbsd-a9b4ad30ad80f68a9dd996be17c70b6366c3f753.tar.xz wireguard-openbsd-a9b4ad30ad80f68a9dd996be17c70b6366c3f753.zip |
assume that a file is modified if its timestamp is lower
than the value found in Entries. This can't really hurt, as
the server will simply ignore it if it's not really modified
-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 6aec3167b38..9ac42f57760 100644 --- a/usr.bin/cvs/file.c +++ b/usr.bin/cvs/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.79 2005/05/24 21:57:33 joris Exp $ */ +/* $OpenBSD: file.c,v 1.80 2005/05/25 09:42:12 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -1013,7 +1013,7 @@ cvs_file_lget(const char *path, int flags, CVSFILE *parent, struct cvs_ent *ent) 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; |