From a17e006b7fcf7be144bd50e12e4df45e94a8ea70 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 5 Apr 1996 16:31:49 +0000 Subject: Don't adjust file times for UTC clock to have the same timestamps for DOS/FreeBSD. --- sys/fs/msdosfs/msdosfs_conv.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sys/fs') diff --git a/sys/fs/msdosfs/msdosfs_conv.c b/sys/fs/msdosfs/msdosfs_conv.c index d3b3c07..9d24f6f 100644 --- a/sys/fs/msdosfs/msdosfs_conv.c +++ b/sys/fs/msdosfs/msdosfs_conv.c @@ -1,4 +1,4 @@ -/* $Id: msdosfs_conv.c,v 1.6 1995/10/29 15:31:46 phk Exp $ */ +/* $Id: msdosfs_conv.c,v 1.7 1995/11/07 14:06:41 phk Exp $ */ /* $NetBSD: msdosfs_conv.c,v 1.6.2.1 1994/08/30 02:27:57 cgd Exp $ */ /* @@ -77,8 +77,9 @@ unix2dostime(tsp, ddp, dtp) * If the time from the last conversion is the same as now, then * skip the computations and use the saved result. */ - t = tsp->ts_sec - (tz.tz_minuteswest * 60) - adjkerntz; - /* +- daylight savings time correction */ ; + t = tsp->ts_sec - (tz.tz_minuteswest * 60) + - wall_cmos_clock ? adjkerntz : 0; + /* - daylight savings time correction */ if (lasttime != t) { lasttime = t; lastdtime = (((t % 60) >> 1) << DT_2SECONDS_SHIFT) @@ -175,7 +176,8 @@ dos2unixtime(dd, dt, tsp) lastseconds = (days * 24 * 60 * 60) + SECONDSTO1980; } tsp->ts_sec = seconds + lastseconds + (tz.tz_minuteswest * 60) - + adjkerntz /* -+ daylight savings time correction */ ; + + wall_cmos_clock ? adjkerntz : 0; + /* + daylight savings time correction */ tsp->ts_nsec = 0; } -- cgit v1.1