aboutsummaryrefslogtreecommitdiffstats
path: root/src/unistd/exec.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-20 18:51:19 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-20 18:51:19 +0100
commit613c7c10dca07571a57dc608754e181ab6754e5f (patch)
tree49650e222728b8244a2462c515e50243e782f394 /src/unistd/exec.c
parentadd searchpath and searchpath2 (diff)
downloadslibc-613c7c10dca07571a57dc608754e181ab6754e5f.tar.gz
slibc-613c7c10dca07571a57dc608754e181ab6754e5f.tar.bz2
slibc-613c7c10dca07571a57dc608754e181ab6754e5f.tar.xz
change semantics of searchpath2 and add searchpath3
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/unistd/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd/exec.c b/src/unistd/exec.c
index 9375baa..3558b1f 100644
--- a/src/unistd/exec.c
+++ b/src/unistd/exec.c
@@ -329,7 +329,7 @@ int execvpe(const char* file, char* const argv[], char* const envp[])
if (!*file)
return errno = ENOENT, -1;
- pathname = searchpath2(file, NULL);
+ pathname = searchpath3(file, NULL, ".");
if (pathname == NULL)
return -1;