lkml.org 
[lkml]   [1998]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectSMBFS date fix.
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

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.031 / U:0.548 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site