OBS User unknown 2007-02-02 14:56:49 +00:00 committed by Git OBS Bridge
parent 7150feb1fd
commit fdf83ee3d6
5 changed files with 93 additions and 6 deletions

65
openat-handling.diff Normal file
View File

@ -0,0 +1,65 @@
Index: include/vki-amd64-linux.h
===================================================================
--- include/vki-amd64-linux.h (revision 6565)
+++ include/vki-amd64-linux.h (working copy)
@@ -240,6 +240,8 @@ struct vki_sigcontext {
#define VKI_O_NONBLOCK 04000
#define VKI_O_LARGEFILE 0100000
+#define VKI_AT_FDCWD -100
+
#define VKI_F_DUPFD 0 /* dup */
#define VKI_F_GETFD 1 /* get close_on_exec */
#define VKI_F_SETFD 2 /* set/clear close_on_exec */
Index: include/vki-ppc32-linux.h
===================================================================
--- include/vki-ppc32-linux.h (revision 6565)
+++ include/vki-ppc32-linux.h (working copy)
@@ -300,6 +300,8 @@ struct vki_sigcontext {
#define VKI_O_NONBLOCK 04000
#define VKI_O_LARGEFILE 0200000
+#define VKI_AT_FDCWD -100
+
#define VKI_F_DUPFD 0 /* dup */
#define VKI_F_GETFD 1 /* get close_on_exec */
#define VKI_F_SETFD 2 /* set/clear close_on_exec */
Index: include/vki-x86-linux.h
===================================================================
--- include/vki-x86-linux.h (revision 6565)
+++ include/vki-x86-linux.h (working copy)
@@ -272,6 +272,8 @@ struct vki_sigcontext {
#define VKI_O_NONBLOCK 04000
#define VKI_O_LARGEFILE 0100000
+#define VKI_AT_FDCWD -100
+
#define VKI_F_DUPFD 0 /* dup */
#define VKI_F_GETFD 1 /* get close_on_exec */
#define VKI_F_SETFD 2 /* set/clear close_on_exec */
Index: include/vki-ppc64-linux.h
===================================================================
--- include/vki-ppc64-linux.h (revision 6565)
+++ include/vki-ppc64-linux.h (working copy)
@@ -357,6 +357,8 @@ struct vki_sigcontext {
#define VKI_O_NONBLOCK 04000
#define VKI_O_LARGEFILE 0200000
+#define VKI_AT_FDCWD -100
+
#define VKI_F_DUPFD 0 /* dup */
#define VKI_F_GETFD 1 /* get close_on_exec */
#define VKI_F_SETFD 2 /* set/clear close_on_exec */
Index: coregrind/m_syswrap/syswrap-linux.c
===================================================================
--- coregrind/m_syswrap/syswrap-linux.c (revision 6565)
+++ coregrind/m_syswrap/syswrap-linux.c (working copy)
@@ -2434,7 +2434,7 @@ PRE(sys_openat)
int, dfd, const char *, filename, int, flags);
}
- if (!ML_(fd_allowed)(ARG1, "openat", tid, False))
+ if (ARG1 != VKI_AT_FDCWD && !ML_(fd_allowed)(ARG1, "openat", tid, False))
SET_STATUS_Failure( VKI_EBADF );
else
PRE_MEM_RASCIIZ( "openat(filename)", ARG2 );

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7ea8ed4d0d1d39372ca1ba8a6b7ad45e16efc63f62bca595bb6273743751795a
size 4016243

3
valgrind-3.2.3.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1bca920527f43fd0c68e8f8eb16a7996b34f415e73af54de0f2cd43a8247c441
size 4016265

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Jan 30 14:22:31 CET 2007 - dmueller@suse.de
- update to 3.2.3:
* fixes two serious regressions introduced in 3.2.2
* intercept stpcpy_chk (#234247)
- fix openat syscall wrapper (#240225)
-------------------------------------------------------------------
Thu Jan 25 15:08:36 CET 2007 - dmueller@suse.de
- intercept stpcpy_chk and memrchr as well (#234347)
-------------------------------------------------------------------
Tue Jan 23 10:59:24 CET 2007 - dmueller@suse.de

View File

@ -1,5 +1,5 @@
#
# spec file for package valgrind (Version 3.2.2)
# spec file for package valgrind (Version 3.2.3)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@ -25,12 +25,13 @@ License: GNU General Public License (GPL)
Group: Development/Tools/Debuggers
Summary: Memory Management Debugger
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Version: 3.2.2
Release: 2
Version: 3.2.3
Release: 1
Source0: %{name}-%{version}.tar.bz2
# svn di svn://svn.valgrind.org/valgrind/tags/VALGRIND_3_2_1 svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_2_BRANCH > 3_2_BRANCH.diff
# svn di svn://svn.valgrind.org/vex/tags/VEX_3_2_1 svn://svn.valgrind.org/vex/branches/VEX_3_2_BRANCH > VEX_3_2_BRANCH.diff
Patch3: valgrind-6012.patch
Patch4: openat-handling.diff
Patch5: omega_RC_01.patch
Provides: callgrind
Obsoletes: callgrind
@ -76,6 +77,7 @@ cd ..
%ifarch %ix86 x86_64
%patch5
%endif
%patch4
%build
export CFLAGS="$RPM_OPT_FLAGS"
@ -100,6 +102,13 @@ mv $RPM_BUILD_ROOT/usr/share/doc/valgrind $RPM_BUILD_ROOT/usr/share/doc/packages
%doc %_mandir/*/*
%changelog -n valgrind
* Tue Jan 30 2007 - dmueller@suse.de
- update to 3.2.3:
* fixes two serious regressions introduced in 3.2.2
* intercept stpcpy_chk (#234247)
- fix openat syscall wrapper (#240225)
* Thu Jan 25 2007 - dmueller@suse.de
- intercept stpcpy_chk and memrchr as well (#234347)
* Tue Jan 23 2007 - dmueller@suse.de
- switch to gcc-32bit on x86_64
* Mon Jan 22 2007 - dmueller@suse.de