[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
0.17: open-with-O_CREAT needs third argument
From: |
Jim Meyering |
Subject: |
0.17: open-with-O_CREAT needs third argument |
Date: |
Wed, 07 Nov 2007 09:28:56 +0100 |
Hi Bruno,
Compiling on fedora rawhide, I got a warning about open-with-O_CREAT
but no 3rd (mode) argument. Here's the fix:
2007-11-07 Jim Meyering <address@hidden>
* write-catalog.c (msgdomain_list_print): Add open's mode argument.
--- gettext-tools/src/write-catalog.c.~1~ 2007-11-07 08:57:35.000000000
+0100
+++ gettext-tools/src/write-catalog.c 2007-11-07 08:57:42.000000000 +0100
@@ -220,7 +220,7 @@
/* Open the output file. */
if (!to_stdout)
{
- fd = open (filename, O_WRONLY | O_CREAT);
+ fd = open (filename, O_WRONLY | O_CREAT, 0600);
if (fd < 0)
{
const char *errno_description = strerror (errno);
- 0.17: open-with-O_CREAT needs third argument,
Jim Meyering <=