summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/file.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2005-07-07 19:06:12 +0000
committerjoris <joris@openbsd.org>2005-07-07 19:06:12 +0000
commitcfb8b42200aa600eb2ba1c323cd9445f08f07889 (patch)
tree8a065ce5d022e080951324a7f660e10668b0648f /usr.bin/cvs/file.c
parent- the PCI layer enables bus mastering so don't bother again here. (diff)
downloadwireguard-openbsd-cfb8b42200aa600eb2ba1c323cd9445f08f07889.tar.xz
wireguard-openbsd-cfb8b42200aa600eb2ba1c323cd9445f08f07889.zip
add a field to CVSFILE which holds the timestamp from the Entries file.
usefull for some commands. ok xsa@
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r--usr.bin/cvs/file.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c
index 66cda12878a..fb07d1feefc 100644
--- a/usr.bin/cvs/file.c
+++ b/usr.bin/cvs/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.93 2005/07/07 14:27:57 joris Exp $ */
+/* $OpenBSD: file.c,v 1.94 2005/07/07 19:06:12 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -358,9 +358,10 @@ cvs_file_copy(CVSFILE *orig)
cfp->cf_mode = orig->cf_mode;
cfp->cf_cvstat = orig->cf_cvstat;
- if (orig->cf_type == DT_REG)
+ if (orig->cf_type == DT_REG) {
+ cfp->cf_etime = orig->cf_etime;
cfp->cf_mtime = orig->cf_mtime;
- else if (orig->cf_type == DT_DIR) {
+ } else if (orig->cf_type == DT_DIR) {
/* XXX copy CVS directory attributes */
}
@@ -1104,6 +1105,8 @@ cvs_file_lget(const char *path, int flags, CVSFILE *parent, struct cvs_ent *ent)
cfp->cf_cvstat = CVS_FST_MODIFIED;
}
}
+
+ cfp->cf_etime = ent->ce_mtime;
}
} else {
if (ent == NULL) {