summaryrefslogtreecommitdiff
path: root/system/tzdata/0001-posixtz-fix-up-lseek.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-12-01 22:55:51 -0600
committerZach van Rijn <me@zv.io>2022-12-01 23:06:31 -0600
commit2e5b3040262a50415ed10d35ae029a41049c6c32 (patch)
tree7a0f1e7817c2be2e43d7de51682eef2933667073 /system/tzdata/0001-posixtz-fix-up-lseek.patch
parent288ba9fc9455ea9a242146eacaf4841018588ed9 (diff)
downloadpackages-2e5b3040262a50415ed10d35ae029a41049c6c32.tar.gz
packages-2e5b3040262a50415ed10d35ae029a41049c6c32.tar.bz2
packages-2e5b3040262a50415ed10d35ae029a41049c6c32.tar.xz
packages-2e5b3040262a50415ed10d35ae029a41049c6c32.zip
Unify contact information.
Diffstat (limited to 'system/tzdata/0001-posixtz-fix-up-lseek.patch')
-rw-r--r--system/tzdata/0001-posixtz-fix-up-lseek.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/system/tzdata/0001-posixtz-fix-up-lseek.patch b/system/tzdata/0001-posixtz-fix-up-lseek.patch
deleted file mode 100644
index 4bf164fec..000000000
--- a/system/tzdata/0001-posixtz-fix-up-lseek.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 5c4cd3cee03428636e8d7cc4ed644389a4d598b3 Mon Sep 17 00:00:00 2001
-From: William Pitcock <nenolod@dereferenced.org>
-Date: Thu, 28 Apr 2011 02:56:42 -0500
-Subject: [PATCH] posixtz: ensure the file offset we pass to lseek is off_t
-
-on 32-bit systems, sizeof(off_t) is 4, on 64-bit sizeof(off_t) is 8
-causing a word masking issue.
----
- posixtz.c | 2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/posixtz.c b/posixtz.c
-index cddcb3e..972ca31 100644
---- a/posixtz-0.5/posixtz.c
-+++ b/posixtz-0.5/posixtz.c
-@@ -36,7 +36,7 @@ char *posix_tz(const char *filename)
- if (r != TZ_BUFLEN
- || strncmp(buf, "TZif", 4) != 0
- || (unsigned char)buf[4] < 2
-- || lseek(fd, -TZ_BUFLEN, SEEK_END) < 0
-+ || lseek(fd, (off_t) -TZ_BUFLEN, SEEK_END) < 0
- )
- goto ERROR;
-
---
-1.7.4.5
-