aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2011-03-25 12:26:54 -0500
committerPeter Seebach <peter.seebach@windriver.com>2011-03-25 12:26:54 -0500
commit96d8e7ce8b483e5cafd0449b9735e4714f41f20b (patch)
treedf0e697d3c4265704c75abbbccdd99bc9847bc17
parent96f54bda80a5692c5c85e3aa74ffbd791c5b89d1 (diff)
downloadpseudo-96d8e7ce8b483e5cafd0449b9735e4714f41f20b.tar.gz
pseudo-96d8e7ce8b483e5cafd0449b9735e4714f41f20b.tar.bz2
pseudo-96d8e7ce8b483e5cafd0449b9735e4714f41f20b.zip
Fix execvp crash
-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();