aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.txt3
-rw-r--r--pseudo_client.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 1b88f7b..a7efd34 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,6 @@
+2011-03-25:
+ * (seebs) don't try to search path when you don't have one
+
2011-02-10:
* (seebs) pseudo_client_shutdown(), and the pseudo server, have to
be smart enough to make the local state directory in case the
diff --git a/pseudo_client.c b/pseudo_client.c
index 5bc0b12..319fa05 100644
--- a/pseudo_client.c
+++ b/pseudo_client.c
@@ -1343,7 +1343,7 @@ pseudo_exec_path(const char *filename, int search_path) {
return candidate;
}
- if (!search_path) {
+ if (!search_path || !path_segs) {
candidate = pseudo_fix_path(pseudo_cwd, filename, 0, pseudo_cwd_len, NULL, 0);
/* executable or not, it's the only thing we can try */
pseudo_magic();