Accepting request 98507 from M17N

- The O_CLOEXEC patch missed one case, in particular the 
  loading of configuration files, this has been fixed. (forwarded request 98503 from elvigia)

OBS-URL: https://build.opensuse.org/request/show/98507
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fontconfig?expand=0&rev=52
This commit is contained in:
Stephan Kulow 2012-01-06 10:43:38 +00:00 committed by Git OBS Bridge
commit 3a5b551df9
3 changed files with 19 additions and 1 deletions

View File

@ -119,3 +119,14 @@
DOCSRC=@DOCSRC@
SUBDIRS=fontconfig fc-case fc-lang fc-glyphname fc-arch src \
fc-cache fc-cat fc-list fc-match fc-query fc-scan conf.d $(DOCSRC) test
--- src/fcxml.c.orig
+++ src/fcxml.c
@@ -2485,7 +2485,7 @@ FcConfigParseAndLoad (FcConfig *conf
if (FcDebug () & FC_DBG_CONFIG)
printf ("\tLoading config file %s\n", filename);
- fd = open ((char *) filename, O_RDONLY);
+ fd = open ((char *) filename, O_RDONLY|O_CLOEXEC);
if (fd == -1) {
FcStrFree (filename);
goto bail0;

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Jan 1 23:42:27 UTC 2012 - crrodriguez@opensuse.org
- The O_CLOEXEC patch missed one case, in particular the
loading of configuration files, this has been fixed.
-------------------------------------------------------------------
Thu Dec 15 09:20:44 UTC 2011 - cfarrell@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package fontconfig
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,6 +16,7 @@
#
Name: fontconfig
%define build_docs 0
BuildRequires: automake