SOURCES: gettext-creat_mode.patch (NEW) - added missing mode (maybe too per...

sls sls at pld-linux.org
Tue Oct 14 04:45:42 CEST 2008


Author: sls                          Date: Tue Oct 14 02:45:42 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- added missing mode (maybe too permisive) to creat

---- Files affected:
SOURCES:
   gettext-creat_mode.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/gettext-creat_mode.patch
diff -u /dev/null SOURCES/gettext-creat_mode.patch:1.1
--- /dev/null	Tue Oct 14 04:45:44 2008
+++ SOURCES/gettext-creat_mode.patch	Tue Oct 14 04:45:37 2008
@@ -0,0 +1,11 @@
+--- gettext-0.17/gettext-tools/src/write-catalog.c.orig	2008-10-14 03:27:49.515344772 +0200
++++ gettext-0.17/gettext-tools/src/write-catalog.c	2008-10-14 04:01:48.875184215 +0200
+@@ -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, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
+ 	  if (fd < 0)
+ 	    {
+ 	      const char *errno_description = strerror (errno);
================================================================


More information about the pld-cvs-commit mailing list