summaryrefslogtreecommitdiff
path: root/archivers/zoo/files/patch-zoolist.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-zoolist.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-zoolist.c')
-rw-r--r--archivers/zoo/files/patch-zoolist.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/archivers/zoo/files/patch-zoolist.c b/archivers/zoo/files/patch-zoolist.c
new file mode 100644
index 000000000000..339b3bdb14c6
--- /dev/null
+++ b/archivers/zoo/files/patch-zoolist.c
@@ -0,0 +1,16 @@
+--- ./zoolist.c.orig 1991-07-20 00:57:27.000000000 +0200
++++ ./zoolist.c 2011-12-22 14:00:55.000000000 +0100
+@@ -539,10 +539,12 @@
+ {
+ long gettz();
+ int diff_tz; /* timezone difference */
++ long t;
+ if (file_tz == NO_TZ) /* if no timezone stored ..*/
+ printf (" "); /* .. just pad with blanks */
+ else {
+- diff_tz = (file_tz / 4) - (int) (gettz() / 3600);
++ time(&t);
++ diff_tz = (file_tz / 4) - (int) (gettz(t) / 3600);
+ if (diff_tz == 0)
+ printf (" "); /* print nothing if same */
+ else if (diff_tz > 0) /* else print signed difference */