summaryrefslogtreecommitdiff
path: root/posix/execvp.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-07-04 12:37:13 +0000
committerJakub Jelinek <jakub@redhat.com>2005-07-04 12:37:13 +0000
commit81c5782861728b804b10a78f5e721aae8a64d5c7 (patch)
tree0e2b4c4f26bebf3b426899bb8ded31a9f5deb6fa /posix/execvp.c
parent9c0825b53822566024d2a1e37e639ca3fe6d9141 (diff)
Updated to fedora-glibc-2_3-20050704T1133
Diffstat (limited to 'posix/execvp.c')
-rw-r--r--posix/execvp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/posix/execvp.c b/posix/execvp.c
index 9809769701..6f4e4b8566 100644
--- a/posix/execvp.c
+++ b/posix/execvp.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,1995-99,2002,2004 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,1995-99,2002,2004,2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -133,14 +133,14 @@ execvp (file, argv)
else
startp = (char *) memcpy (name - (p - path), path, p - path);
- /* Try to execute this name. If it works, execv will not return. */
+ /* Try to execute this name. If it works, execve will not return. */
__execve (startp, argv, __environ);
if (errno == ENOEXEC)
{
if (script_argv == NULL)
{
- script_argv = allocate_scripts_argv (file, argv);
+ script_argv = allocate_scripts_argv (startp, argv);
if (script_argv == NULL)
{
/* A possible EACCES error is not as important as