aboutsummaryrefslogtreecommitdiffstats
path: root/src/unistd/execat.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-11 03:41:20 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-11 03:41:20 +0200
commit98fa61f19be6aff1908d4da79ecc47e7bf9b45da (patch)
treefc8e061c28cdb1c830cc7daea5f1e06cb561612f /src/unistd/execat.c
parentadd execat functions (diff)
downloadslibc-98fa61f19be6aff1908d4da79ecc47e7bf9b45da.tar.gz
slibc-98fa61f19be6aff1908d4da79ecc47e7bf9b45da.tar.bz2
slibc-98fa61f19be6aff1908d4da79ecc47e7bf9b45da.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/unistd/execat.c')
-rw-r--r--src/unistd/execat.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/unistd/execat.c b/src/unistd/execat.c
index d80d24b..5c42d79 100644
--- a/src/unistd/execat.c
+++ b/src/unistd/execat.c
@@ -450,9 +450,6 @@ int execvpeat(int dirfd, const char* file, char* const argv[], char* const envp[
if (strchr(file, '/') || !*file)
return execveat(dirfd, file, argv, envp, flags);
- if (!*file)
- return errno = ENOENT, -1;
-
path = getenv(PATH);
if (path == NULL)
{