aboutsummaryrefslogtreecommitdiff
path: root/devel/valgrind-snapshot
diff options
context:
space:
mode:
Diffstat (limited to 'devel/valgrind-snapshot')
-rw-r--r--devel/valgrind-snapshot/files/patch-coregrind_vg_main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/devel/valgrind-snapshot/files/patch-coregrind_vg_main.c b/devel/valgrind-snapshot/files/patch-coregrind_vg_main.c
index 88220ecfb985..23d7d777be75 100644
--- a/devel/valgrind-snapshot/files/patch-coregrind_vg_main.c
+++ b/devel/valgrind-snapshot/files/patch-coregrind_vg_main.c
@@ -1,5 +1,5 @@
---- coregrind/vg_main.c.orig Tue Sep 20 02:21:16 2005
-+++ coregrind/vg_main.c Tue Sep 20 02:22:29 2005
+--- coregrind/vg_main.c.orig Sun May 9 13:00:57 2004
++++ coregrind/vg_main.c Thu Oct 20 13:05:13 2005
@@ -1286,6 +1286,7 @@
static const char* find_executable(const char* exec)
@@ -8,7 +8,7 @@
vg_assert(NULL != exec);
if (strchr(exec, '/') == NULL) {
/* no '/' - we need to search the path */
-@@ -1304,12 +1305,16 @@
+@@ -1304,12 +1305,18 @@
if (access(buf, R_OK|X_OK) == 0) {
exec = strdup(buf);
vg_assert(NULL != exec);
@@ -18,6 +18,8 @@
return 0;
}
scan_colsep(path, match_exe);
++ } else if (access(exec, R_OK|X_OK) == 0) {
++ found = 1;
}
+ if (!found)
+ return 0;