1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 64_init_reexec_env.dpatch by Petter Reinholdtsen
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Make sure the environment is passed on to the new init program
6
## DP: when re-exec is used. The patch is sysvinit-2.86-environ.patch
10
diff -urNad trunk~/src/init.c trunk/src/init.c
11
--- trunk~/src/init.c 2008-03-26 09:34:05.000000000 +0100
12
+++ trunk/src/init.c 2008-03-26 09:34:05.000000000 +0100
14
* The existing init process execs a new init binary.
16
env = init_buildenv(0);
17
- execl(myname, myname, "--init", NULL, env);
18
+ execle(myname, myname, "--init", NULL, env);
21
* We shouldn't be here, something failed.