From 56a24b14dccaecba372f8b59b4510f1dee8527f099c653c1c6bf320377226f8e Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Mon, 7 Sep 2009 21:34:33 +0000 Subject: [PATCH] Accepting request 20082 from systemmanagement Copy from systemmanagement/cfengine based on submit request 20082 from user anicka OBS-URL: https://build.opensuse.org/request/show/20082 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cfengine?expand=0&rev=15 --- cfengine-2.2.8-closedir.diff | 12 ++++++++++++ cfengine.changes | 5 +++++ cfengine.spec | 4 +++- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 cfengine-2.2.8-closedir.diff diff --git a/cfengine-2.2.8-closedir.diff b/cfengine-2.2.8-closedir.diff new file mode 100644 index 0000000..52984c9 --- /dev/null +++ b/cfengine-2.2.8-closedir.diff @@ -0,0 +1,12 @@ +--- src/link.c ++++ src/link.c +@@ -230,7 +230,8 @@ + } + } + } +- ++ ++ closedir(dirh); + if (matched) return; + } + } diff --git a/cfengine.changes b/cfengine.changes index d0f8b0d..b3a6c5f 100644 --- a/cfengine.changes +++ b/cfengine.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 7 20:53:22 CEST 2009 - anicka@suse.cz + +- fixed resource leak (bnc#533579) + ------------------------------------------------------------------- Mon Aug 10 17:03:52 CEST 2009 - anicka@suse.cz diff --git a/cfengine.spec b/cfengine.spec index d665623..73ddd05 100644 --- a/cfengine.spec +++ b/cfengine.spec @@ -24,7 +24,7 @@ License: GPL v2 or later Group: Productivity/Networking/System AutoReqProv: on Version: 2.2.8 -Release: 6 +Release: 7 Summary: A Tool to Maintain Complicated Networks Url: http://www.cfengine.org/ Source: %{name}-%{version}.tar.bz2 @@ -38,6 +38,7 @@ Patch5: %{name}-%{version}-strict-aliasing-fix.diff Patch7: %{name}-%{version}-printf.diff Patch9: %{name}-%{version}-overflow.diff Patch10: %{name}-%{version}-free.diff +Patch11: %{name}-%{version}-closedir.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %install_info_prereq @@ -62,6 +63,7 @@ Authors: %patch7 %patch9 %patch10 +%patch11 %build %{suse_update_config -f}