From 660dcb3aceae59d0b1c3c22f114d7dc1e22f7c41448469267287726c3e8ff6e7 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 26 Nov 2007 19:58:01 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/oprofile?expand=0&rev=7 --- oprofile-0.9.3.diff | 9 +++++++++ oprofile.changes | 5 +++++ oprofile.spec | 5 ++++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/oprofile-0.9.3.diff b/oprofile-0.9.3.diff index 124c68d..ae3dd55 100644 --- a/oprofile-0.9.3.diff +++ b/oprofile-0.9.3.diff @@ -150,6 +150,15 @@ #include #include #include +@@ -37,7 +38,7 @@ bool copy_file(string const & source, st + if (stat(source.c_str(), &buf)) + return false; + +- int fd = open(destination.c_str(), O_RDWR|O_CREAT); ++ int fd = open(destination.c_str(), O_RDWR|O_CREAT, 0600); + if (fd < 0) + return false; + close(fd); --- libutil++/op_bfd.cpp +++ libutil++/op_bfd.cpp @@ -166,7 +166,7 @@ op_bfd::~op_bfd() diff --git a/oprofile.changes b/oprofile.changes index 9dc3578..2a4b292 100644 --- a/oprofile.changes +++ b/oprofile.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Nov 26 13:08:50 CET 2007 - schwab@suse.de + +- Fix open call. + ------------------------------------------------------------------- Tue Oct 16 16:50:06 CEST 2007 - schwab@suse.de diff --git a/oprofile.spec b/oprofile.spec index 5380642..ebd9ee1 100644 --- a/oprofile.spec +++ b/oprofile.spec @@ -17,7 +17,7 @@ License: GPL v2 or later Group: Development/Tools/Other AutoReqProv: on Version: 0.9.3 -Release: 31 +Release: 45 Summary: System-Wide Profiler for Linux Systems BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: %{name}-%{version}.tar.gz @@ -82,7 +82,10 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/* %doc doc/oprofile.html doc/internals.html doc/opreport.xsd %doc COPYING README TODO ChangeLog + %changelog +* Mon Nov 26 2007 - schwab@suse.de +- Fix open call. * Tue Oct 16 2007 - schwab@suse.de - Fix event mapping on 970MP [#333487]. * Thu Oct 11 2007 - schwab@suse.de