rpms/tgif/devel tgif-QPL-4.1.45-open-with-mode.patch, NONE, 1.1 tgif.spec, 1.3, 1.4

Mamoru Tasaka (mtasaka) fedora-extras-commits at redhat.com
Wed Aug 22 03:46:09 UTC 2007


Author: mtasaka

Update of /cvs/extras/rpms/tgif/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17254

Modified Files:
	tgif.spec 
Added Files:
	tgif-QPL-4.1.45-open-with-mode.patch 
Log Message:
* Wed Aug 22 2007 TASAKA Mamoru <mtasaka at ioa.s.u-tokyo.ac.jp> - 4.1.45-5
- Set mode explicitly when open(2) is used with O_CREAT
  due to recent glibc change


tgif-QPL-4.1.45-open-with-mode.patch:

--- NEW FILE tgif-QPL-4.1.45-open-with-mode.patch ---
--- tgif-QPL-4.1.45/file.c.opmode	2006-06-14 07:29:57.000000000 +0900
+++ tgif-QPL-4.1.45/file.c	2007-08-22 12:37:19.000000000 +0900
@@ -257,7 +257,7 @@
 
    if (!mkstemp_succes) {
 #ifdef O_EXCL
-      int fd=open(buf, O_CREAT|O_EXCL|O_WRONLY);
+      int fd=open(buf, O_CREAT|O_EXCL|O_WRONLY, S_IRUSR|S_IWUSR);
 
       if (fd == -1) {
          /* barf loudly that someone is trying to hack the box */
--- tgif-QPL-4.1.45/util.c.opmode	2006-06-14 07:30:00.000000000 +0900
+++ tgif-QPL-4.1.45/util.c	2007-08-22 12:37:39.000000000 +0900
@@ -617,7 +617,7 @@
     mktemp(buf);
 #ifdef O_EXCL
     fd_used = TRUE;
-    fd = open(buf, O_CREAT|O_EXCL|O_WRONLY);
+    fd = open(buf, O_CREAT|O_EXCL|O_WRONLY, S_IRUSR|S_IWUSR);
 #endif /* O_EXCL */
 #else /* _DONT_USE_MKTEMP */
     sprintf(buf, "%s%sXXXXXX", pszDir, pszPrefix);


Index: tgif.spec
===================================================================
RCS file: /cvs/extras/rpms/tgif/devel/tgif.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- tgif.spec	21 Aug 2007 18:44:37 -0000	1.3
+++ tgif.spec	22 Aug 2007 03:45:37 -0000	1.4
@@ -2,7 +2,7 @@
 
 Name:		tgif
 Version:	4.1.45
-Release:	4%{?dist}.1
+Release:	5%{?dist}
 Summary:	2-D drawing tool
 Group:		Applications/Multimedia
 
@@ -20,6 +20,7 @@
 # http://tyche.pu-toyama.ac.jp/~a-urasim/tgif/
 Patch10:	tgif-textcursor-a-urasim.patch
 Patch20:	tgif-4.1.44-xim-bad-focus.patch
+Patch100:	tgif-QPL-4.1.45-open-with-mode.patch
 Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
 
 BuildRequires:	ImageMagick
@@ -43,6 +44,7 @@
 %patch3 -p1 -b .overthespot
 %patch10 -p0 -b textcursor
 %patch20 -p1 -b .xim-bad-focus
+%patch100 -p1 -b .opmode
 
 %{__cp} -pf %{SOURCE2} po/ja/ja.po
 pushd po/ja
@@ -160,6 +162,10 @@
 %{_datadir}/applications/*-%{name}.desktop
 
 %changelog
+* Wed Aug 22 2007 TASAKA Mamoru <mtasaka at ioa.s.u-tokyo.ac.jp> - 4.1.45-5
+- Set mode explicitly when open(2) is used with O_CREAT
+  due to recent glibc change
+
 * Wed Aug 22 2007 TASAKA Mamoru <mtasaka at ioa.s.u-tokyo.ac.jp> - 4.1.45-4.dist.1
 - Mass rebuild (buildID or binutils issue)
 




More information about the fedora-extras-commits mailing list