update changelog for new upstream version
[debian/gzip] / debian / patches / 0001-gzip-port-better-to-mingw-again.patch
1 From 1252d056feaf71e7488cbaa5a78b3d45cd77f877 Mon Sep 17 00:00:00 2001
2 From: Paul Eggert <eggert@cs.ucla.edu>
3 Date: Sat, 4 Aug 2018 00:37:43 -0700
4 Subject: [PATCH] gzip: port better to mingw again
5
6 Problem reported by Bdale Garbee (Bug#32305#8).
7 * gzip.c (do_chown): Use HAVE_FCHOWN || HAVE_CHOWN,
8 which is configured, instead of DO_CHOWN, which is not.
9 ---
10  gzip.c | 2 +-
11  1 file changed, 1 insertion(+), 1 deletion(-)
12
13 diff --git a/gzip.c b/gzip.c
14 index 02d5364..b26dd14 100644
15 --- a/gzip.c
16 +++ b/gzip.c
17 @@ -1923,7 +1923,7 @@ local int check_ofname()
18     the file and NAME its name.  Change it to user UID and to group GID.
19     If UID or GID is -1, though, do not change the corresponding user
20     or group.  */
21 -#ifdef NO_CHOWN
22 +#if ! (HAVE_FCHOWN || HAVE_CHOWN)
23  /* The types uid_t and gid_t do not exist on mingw, so don't assume them.  */
24  # define do_chown(fd, name, uid, gid) ((void) 0)
25  #else
26 -- 
27 2.18.0
28