]> git.ipfire.org Git - thirdparty/lxc.git/commit
don't truncate environment sometimes in setproctitle
authorTycho Andersen <tycho.andersen@canonical.com>
Mon, 16 Nov 2015 22:12:36 +0000 (15:12 -0700)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 17 Nov 2015 16:32:02 +0000 (11:32 -0500)
commit058b94fe0e3c6254c98911bfedb5695c825a8be2
tree65117873ad766635e65f6dd4f117dcbbbcb5282c
parentf8b2a49ce0bb7ce66d0c902b5976a48e49f754b2
don't truncate environment sometimes in setproctitle

Instead, let's just allocate new space for the proctitle to live and point
the kernel at that.

v2: take out testing hunk
v3: check return from realloc

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/utils.c