SMBFS date fix.

Pal-Kristian Engstad (engstad@intermetrics.com)
Tue, 04 Aug 1998 16:20:33 -0400


The main development tree has not fixed the date bug in SMBFS.
On a related side. Why can't we just put all these DOS-isms into
a base-module so that we don't duplicate errors like these?

Here's the patch:

--- fs/smbfs/proc.c.orig Tue Aug 4 16:14:38 1998
+++ fs/smbfs/proc.c Tue Aug 4 16:16:21 1998
@@ -179,13 +179,13 @@
static time_t
utc2local(time_t time)
{
- return time - sys_tz.tz_minuteswest * 60;
+ return time - sys_tz.tz_minuteswest * 60 - (sys_tz.tz_dsttime ? 3600 :
0);
}

static time_t
local2utc(time_t time)
{
- return time + sys_tz.tz_minuteswest * 60;
+ return time + sys_tz.tz_minuteswest * 60 + (sys_tz.tz_dsttime ? 3600 :
0);
}

/* Convert a MS-DOS time/date pair to a UNIX date (seconds since 1 1
70). */

PKE.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html