patch-2.1.34 linux/fs/fat/misc.c

Next file: linux/fs/inode.c
Previous file: linux/fs/exec.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.33/linux/fs/fat/misc.c linux/fs/fat/misc.c
@@ -258,6 +258,9 @@
 {
 	int day,year,nl_day,month;
 
+	if (sys_tz.tz_dsttime) {
+		unix_date += 3600;
+	}
 	unix_date -= sys_tz.tz_minuteswest*60;
 	*time = (unix_date % 60)/2+(((unix_date/60) % 60) << 5)+
 	    (((unix_date/3600) % 24) << 11);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov