summaryrefslogtreecommitdiff
path: root/net/vsftpd/patches/patch-ag
blob: 09b6f5ab539a83a0833a2a713d2df0e6ffd38ae2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ag,v 1.3 2006/05/16 21:08:51 joerg Exp $

--- sysutil.c.orig	2006-01-09 18:05:18.000000000 +0100
+++ sysutil.c
@@ -2478,7 +2478,14 @@ vsf_sysutil_tzset(void)
   tzset();
   the_time = time(NULL);
   p_tm = localtime(&the_time);
+#if defined (__SVR4) && defined (__sun) 
+  if (daylight != 0)
+    s_timezone = altzone;
+  else
+    s_timezone = timezone;
+#else
   s_timezone = -p_tm->tm_gmtoff;
+#endif
 }
 
 const char*