summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/file.c
diff options
context:
space:
mode:
authorjfb <jfb@openbsd.org>2005-05-25 09:42:12 +0000
committerjfb <jfb@openbsd.org>2005-05-25 09:42:12 +0000
commita9b4ad30ad80f68a9dd996be17c70b6366c3f753 (patch)
treef57594446caf70f90c035d907dabd9140a66bbda /usr.bin/cvs/file.c
parentwhen importing a file in local mode, add the first two revisions (diff)
downloadwireguard-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
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r--usr.bin/cvs/file.c4
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;