Gentoo Archives: gentoo-commits

From: "Peter Alfredsen (loki_val)" <loki_val@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/gettext/files: gettext-0.17-open-args.patch
Date: Fri, 26 Sep 2008 22:31:36
Message-Id: E1KjLqY-00067t-4g@stork.gentoo.org
1 loki_val 08/09/26 22:31:34
2
3 Added: gettext-0.17-open-args.patch
4 Log:
5 Fix bug #232081, gcc-4.3 compat. Thanks to Magnus Granberg <zorry@×××.nu>.
6 (Portage version: 2.2_rc10/cvs/Linux 2.6.25.8 i686)
7
8 Revision Changes Path
9 1.1 sys-devel/gettext/files/gettext-0.17-open-args.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gettext/files/gettext-0.17-open-args.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gettext/files/gettext-0.17-open-args.patch?rev=1.1&content-type=text/plain
13
14 Index: gettext-0.17-open-args.patch
15 ===================================================================
16 2007-11-07 Jim Meyering <meyering@××××××.com>
17 Bruno Haible <bruno@×××××.org>
18
19 * write-catalog.c (msgdomain_list_print): Fix open() call.
20
21 --- gettext-tools/src/write-catalog.c 7 Oct 2007 19:35:31 -0000 1.4
22 +++ gettext-tools/src/write-catalog.c 7 Nov 2007 11:43:15 -0000
23 @@ -1,5 +1,5 @@
24 /* GNU gettext - internationalization aids
25 - Copyright (C) 1995-1998, 2000-2006 Free Software Foundation, Inc.
26 + Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc.
27
28 This program is free software: you can redistribute it and/or modify
29 it under the terms of the GNU General Public License as published by
30 @@ -220,7 +220,9 @@
31 /* Open the output file. */
32 if (!to_stdout)
33 {
34 - fd = open (filename, O_WRONLY | O_CREAT);
35 + fd = open (filename, O_WRONLY | O_CREAT | O_TRUNC,
36 + /* 0666 in portable POSIX notation: */
37 + S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
38 if (fd < 0)
39 {
40 const char *errno_description = strerror (errno);