aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbarner <barner@FreeBSD.org>2005-10-20 19:09:39 +0800
committerbarner <barner@FreeBSD.org>2005-10-20 19:09:39 +0800
commit8d0c4d7e72506835b677c3dcd5d06d4659078453 (patch)
tree6e5421f4646d11ea1e7eca0dd0b561a1916c2ae9
parente7546f44b7038f6ccb3b6e538137f032b0a33ffc (diff)
downloadfreebsd-ports-gnome-8d0c4d7e72506835b677c3dcd5d06d4659078453.tar.gz
freebsd-ports-gnome-8d0c4d7e72506835b677c3dcd5d06d4659078453.tar.zst
freebsd-ports-gnome-8d0c4d7e72506835b677c3dcd5d06d4659078453.zip
Fix lookup of executables that are not in $PATH, but specified by an
absolute or relative path.
-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;