summaryrefslogtreecommitdiff
path: root/contrib/cvs/src/patch.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1997-06-22 10:55:49 +0000
committerPeter Wemm <peter@FreeBSD.org>1997-06-22 10:55:49 +0000
commit3398c9be05502e12d986ef6e89739df1dc9ba9e6 (patch)
tree8684660dbfd105deed9a44c9e97d4f56b231fac1 /contrib/cvs/src/patch.c
parentaa134866ad3127753d521cc9aca28a226d941aa4 (diff)
Notes
Diffstat (limited to 'contrib/cvs/src/patch.c')
-rw-r--r--contrib/cvs/src/patch.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/cvs/src/patch.c b/contrib/cvs/src/patch.c
index 1cf83971ed35..194999be6512 100644
--- a/contrib/cvs/src/patch.c
+++ b/contrib/cvs/src/patch.c
@@ -514,7 +514,9 @@ patch_fileproc (callerdat, finfo)
memset ((char *) &t, 0, sizeof (t));
if ((t.actime = t.modtime = RCS_getrevtime (rcsfile, vers_tag,
(char *) 0, 0)) != -1)
- (void) utime (tmpfile1, &t);
+ /* I believe this timestamp only affects the dates in our diffs,
+ and therefore should be on the server, not the client. */
+ (void) utime (tmpfile1, &t);
}
else if (toptwo_diffs)
{
@@ -536,7 +538,9 @@ patch_fileproc (callerdat, finfo)
}
if ((t.actime = t.modtime = RCS_getrevtime (rcsfile, vers_head,
(char *) 0, 0)) != -1)
- (void) utime (tmpfile2, &t);
+ /* I believe this timestamp only affects the dates in our diffs,
+ and therefore should be on the server, not the client. */
+ (void) utime (tmpfile2, &t);
}
run_setup ("%s -%c", DIFF, unidiff ? 'u' : 'c');
run_arg (tmpfile1);