aboutsummaryrefslogtreecommitdiffstats
path: root/main/musl/0004-fix-new-environment-always-being-null-with-execle.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-28 08:39:33 +0200
committerTimo Teräs <timo.teras@iki.fi>2013-10-28 08:40:39 +0200
commit360c374261ec3344a413b3d9c02cc8071e274e95 (patch)
treeb1cd3d3334b73a569e0e44c954c9bd00702df3fa /main/musl/0004-fix-new-environment-always-being-null-with-execle.patch
parentbcd24d58cea9a53960df1e4e9dd33326926bc80d (diff)
downloadaports-360c374261ec3344a413b3d9c02cc8071e274e95.tar.bz2
aports-360c374261ec3344a413b3d9c02cc8071e274e95.tar.xz
main/musl: include git commits up to 71d23b310383
multiple bug fixes, and sys/timeb.h with ftime() implemented increasing compatibility with old applications.
Diffstat (limited to 'main/musl/0004-fix-new-environment-always-being-null-with-execle.patch')
-rw-r--r--main/musl/0004-fix-new-environment-always-being-null-with-execle.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/main/musl/0004-fix-new-environment-always-being-null-with-execle.patch b/main/musl/0004-fix-new-environment-always-being-null-with-execle.patch
deleted file mode 100644
index 31a1672e22..0000000000
--- a/main/musl/0004-fix-new-environment-always-being-null-with-execle.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 2b2aff37aced66e4a50a38a14607a9b1dc0ee001 Mon Sep 17 00:00:00 2001
-From: Rich Felker <dalias@aerifal.cx>
-Date: Thu, 3 Oct 2013 10:16:01 -0400
-Subject: [PATCH] fix new environment always being null with execle
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-the va_arg call for the argv[]-terminating null pointer was missing,
-so this pointer was being wrongly used as the environment pointer.
-
-issue reported by Timo Teräs. proposed patch slightly modified to
-simplify the resulting code.
----
- src/process/execle.c | 3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
-diff --git a/src/process/execle.c b/src/process/execle.c
-index 6490836..6f2ec05 100644
---- a/src/process/execle.c
-+++ b/src/process/execle.c
-@@ -14,9 +14,8 @@ int execle(const char *path, const char *argv0, ...)
- char **envp;
- va_start(ap, argv0);
- argv[0] = (char *)argv0;
-- for (i=1; i<argc; i++)
-+ for (i=1; i<=argc; i++)
- argv[i] = va_arg(ap, char *);
-- argv[i] = NULL;
- envp = va_arg(ap, char **);
- return execve(path, argv, envp);
- }
---
-1.8.4
-
-