While we are here, fix the whitespace damage.
Signed-off-by: Richard Weinberger
---
src/lxc/lxc_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxc/lxc_init.c b/src/lxc/lxc_init.c
index e4c9a32..84e1293 100644
--- a/src/lxc/lxc_init.c
+++ b/src/lxc/lxc_init.c
There is no need to use nested functions voodoo.
Signed-off-by: Richard Weinberger
---
src/lxc/lxc_init.c | 13 ++---
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/lxc/lxc_init.c b/src/lxc/lxc_init.c
index c83c2f1..e4c9a32 100644
--- a/src/lxc/lxc_init.c
+++ b/src
when the child does execve() to the init within
the new namespace the handler will be disabled automatically.
Signed-off-by: Richard Weinberger
---
src/lxc/start.c | 28
1 file changed, 28 insertions(+)
diff --git a/src/lxc/start.c b/src/lxc/start.c
index aefccd6
Am 17.04.2013 14:55, schrieb Serge Hallyn:
> Quoting Richard Weinberger (rich...@nod.at):
>> There is no need to use nested functions voodoo.
>
> I see no downside to this, but what is the upside?
There is absolute no reason to use a GNU C extension here which makes
the code incomp
Reimplement mkdir_p() such that it:
...handles relativ paths correctly. (currently it crashes)
...does not rely on dirname().
...is not recursive.
...is shorter. ;-)
Signed-off-by: Richard Weinberger
---
src/lxc/utils.c | 48 +---
1 file changed
Am 17.04.2013 18:00, schrieb Serge Hallyn:
> Quoting Richard Weinberger (rich...@nod.at):
>> Reimplement mkdir_p() such that it:
>> ...handles relativ paths correctly. (currently it crashes)
>> ...does not rely on dirname().
>> ...is not recursive.
>>
Reimplement mkdir_p() such that it:
...handles relativ paths correctly. (currently it crashes)
...does not rely on dirname().
...is not recursive.
...is shorter. ;-)
Signed-off-by: Richard Weinberger
---
src/lxc/utils.c | 46 +++---
1 file changed, 15
Am 17.04.2013 22:49, schrieb Serge Hallyn:
> Quoting Richard Weinberger (rich...@nod.at):
>> Am 17.04.2013 18:00, schrieb Serge Hallyn:
>>> Quoting Richard Weinberger (rich...@nod.at):
>>>> Reimplement mkdir_p() such that it:
>>>> ...handles rela