summaryrefslogtreecommitdiff
path: root/archivers/zoo/files/patch-misc2.c
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2011-12-22 13:12:22 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2011-12-22 13:12:22 +0000
commit2aff69237c3bb2d6fea638a6a4ece1592fc0db27 (patch)
tree8d979d43d22799a313b87e997e83036b073c8179 /archivers/zoo/files/patch-misc2.c
parent- Update to Build 21, see PR for list of upstream fixes (diff)
- Patch zoo to work properly when modifying existing archives on 64-bit
systems - Bump PORTREVISION PR: ports/162804 Submitted by: Carl Johnson <carlj@peak.org>
Diffstat (limited to 'archivers/zoo/files/patch-misc2.c')
-rw-r--r--archivers/zoo/files/patch-misc2.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/archivers/zoo/files/patch-misc2.c b/archivers/zoo/files/patch-misc2.c
new file mode 100644
index 000000000000..de3595ab5713
--- /dev/null
+++ b/archivers/zoo/files/patch-misc2.c
@@ -0,0 +1,17 @@
+--- ./misc2.c.orig 1991-07-16 17:53:02.000000000 +0200
++++ ./misc2.c 2011-12-22 14:00:55.000000000 +0100
+@@ -314,10 +314,12 @@
+ {
+ long diff_tz;
+ long longtime;
++ long t;
+ if (direntry->tz == NO_TZ) /* none stored */
+ return;
+- diff_tz = (long) direntry->tz * (3600/4) - gettz(); /* diff. in seconds */
+- longtime = mstonix (direntry->date, direntry->time) + diff_tz; /* adj tz */
++ t = mstonix (direntry->date, direntry->time);
++ diff_tz = (long) direntry->tz * (3600/4) - gettz(t); /* diff. in seconds */
++ longtime = t + diff_tz; /* adj tz */
+ mstime (longtime, &direntry->date, &direntry->time);
+ }
+ #endif /* GETTZ */