diff options
author | Simon Barner <barner@FreeBSD.org> | 2005-10-20 11:09:39 +0000 |
---|---|---|
committer | Simon Barner <barner@FreeBSD.org> | 2005-10-20 11:09:39 +0000 |
commit | d357359e10b03a1d14ad90b58743433548ac1ac9 (patch) | |
tree | 1ad45a1db0fa80ec73487ae95fd62d5c80739b68 /devel/valgrind-snapshot | |
parent | 3dc959b3ed9f68cb6c4068300ffaea3c7c0b394a (diff) |
Notes
Diffstat (limited to 'devel/valgrind-snapshot')
-rw-r--r-- | devel/valgrind-snapshot/files/patch-coregrind_vg_main.c | 8 |
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; |