From 492ebd3a85c0062008b8814834d0c09a322afae5 Mon Sep 17 00:00:00 2001 From: Ivana Varekova Date: Mon, 4 Jun 2007 08:31:01 +0000 Subject: [PATCH] change the name of futimens procedure --- gzip-1.3.12-futimens.patch | 36 ++++++++++++++++++++++++++++++++++++ gzip.spec | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 gzip-1.3.12-futimens.patch diff --git a/gzip-1.3.12-futimens.patch b/gzip-1.3.12-futimens.patch new file mode 100644 index 0000000..a6cfd5a --- /dev/null +++ b/gzip-1.3.12-futimens.patch @@ -0,0 +1,36 @@ +--- gzip-1.3.12/lib/utimens.h.pom 2007-02-23 19:25:21.000000000 +0100 ++++ gzip-1.3.12/lib/utimens.h 2007-06-04 12:18:29.000000000 +0200 +@@ -1,3 +1,3 @@ + #include +-int futimens (int, char const *, struct timespec const [2]); ++int futimens_oi (int, char const *, struct timespec const [2]); + int utimens (char const *, struct timespec const [2]); +--- gzip-1.3.12/lib/utimens.c.pom 2007-01-18 09:33:34.000000000 +0100 ++++ gzip-1.3.12/lib/utimens.c 2007-06-04 12:18:23.000000000 +0200 +@@ -75,7 +75,7 @@ struct utimbuf + Return 0 on success, -1 (setting errno) on failure. */ + + int +-futimens (int fd ATTRIBUTE_UNUSED, ++futimens_oi (int fd ATTRIBUTE_UNUSED, + char const *file, struct timespec const timespec[2]) + { + /* Some Linux-based NFS clients are buggy, and mishandle time stamps +@@ -185,5 +185,5 @@ futimens (int fd ATTRIBUTE_UNUSED, + int + utimens (char const *file, struct timespec const timespec[2]) + { +- return futimens (-1, file, timespec); ++ return futimens_oi (-1, file, timespec); + } +--- gzip-1.3.12/gzip.c.pom 2007-06-04 12:17:29.000000000 +0200 ++++ gzip-1.3.12/gzip.c 2007-06-04 12:17:59.000000000 +0200 +@@ -1643,7 +1643,7 @@ local void copy_stat(ifstat) + } + } + +- if (futimens (ofd, ofname, timespec) != 0) ++ if (futimens_oi (ofd, ofname, timespec) != 0) + { + int e = errno; + WARN ((stderr, "%s: ", program_name)); diff --git a/gzip.spec b/gzip.spec index d53530c..fb0ccc0 100644 --- a/gzip.spec +++ b/gzip.spec @@ -17,6 +17,7 @@ Patch13: gzip-1.3.5-cve-2006-4336.patch Patch14: gzip-1.3.5-cve-2006-4338.patch Patch15: gzip-1.3.9-cve-2006-4337.patch Patch16: gzip-1.3.5-cve-2006-4337_len.patch +Patch17: gzip-1.3.12-futimens.patch URL: http://www.gzip.org/ Requires: /sbin/install-info Requires: mktemp less @@ -44,6 +45,7 @@ very commonly used data compression program. %patch14 -p1 -b .4338 %patch15 -p1 -b .4337 %patch16 -p1 -b .4337l +%patch17 -p1 -b .futimens %build export DEFS="NO_ASM"