aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/scli/files/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/scli/files/patch-ad')
-rw-r--r--net-mgmt/scli/files/patch-ad31
1 files changed, 31 insertions, 0 deletions
diff --git a/net-mgmt/scli/files/patch-ad b/net-mgmt/scli/files/patch-ad
new file mode 100644
index 000000000000..649c50158fb0
--- /dev/null
+++ b/net-mgmt/scli/files/patch-ad
@@ -0,0 +1,31 @@
+--- scli/fmt.c 2002-03-27 14:41:27.000000000 +0100
++++ scli/fmt.c_old 2002-05-02 08:03:22.000000000 +0200
+@@ -81,7 +81,7 @@
+ {
+ static char buffer[80];
+ time_t now, gmt;
+- struct tm *tm;
++ struct tm *tm, now_tm;
+ int gmt_offset;
+
+ now = time(NULL);
+@@ -99,13 +99,14 @@
+ gmt = mktime(tm);
+
+ tm = localtime(&now);
++ now_tm = *tm;
+ tm->tm_isdst = 0;
+ gmt_offset = mktime(tm) - gmt;
+
+ g_snprintf(buffer, sizeof(buffer),
+ "%04d-%02d-%02d %02d:%02d:%02d %c%02d:%02d",
+- tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
+- tm->tm_hour, tm->tm_min, tm->tm_sec,
++ now_tm.tm_year + 1900, now_tm.tm_mon + 1, now_tm.tm_mday,
++ now_tm.tm_hour, now_tm.tm_min, now_tm.tm_sec,
+ gmt_offset >= 0 ? '+' : '-',
+ (int) ABS(gmt_offset) / 3600,
+ (int) (ABS(gmt_offset) / 60) % 60);
+
+
+