]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc_id_mapping: don't try to write mappings if there are none
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 13 Mar 2013 15:33:00 +0000 (10:33 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 13 Mar 2013 16:30:21 +0000 (12:30 -0400)
commit4f7521b4137d37fed01d3d11d4d2dde92138158a
tree0c6b3ee6f67f77132066685af93fc85ec9dd2ecf
parent6139e7e52d914af89f2a204512c1345af56ce6e9
lxc_id_mapping: don't try to write mappings if there are none

Otherwise containers fail to start even if they aren't trying to map
ids.

Also don't allocate buf unless we need to.

Reported-by: Alexander Vladimirov <alexander.idkfa.vladimirov@gmail.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/conf.c