]> git.proxmox.com Git - mirror_lxc.git/commit
lxc-usernsexec: fix default map functionality
authorCameron Nemo <camerontnorman@gmail.com>
Thu, 29 Nov 2018 03:42:29 +0000 (19:42 -0800)
committerCameron Nemo <camerontnorman@gmail.com>
Thu, 29 Nov 2018 05:04:34 +0000 (21:04 -0800)
commitc14ea11dccbfa80021a9b169b94bd86e8b359611
treed5d504d99b887b7e880808b90ffc02a1548f19e0
parentb8f44de376aa95503831273785628491a5347a2a
lxc-usernsexec: fix default map functionality

* Place NULL bytes at the end of strings so that
  lxc_safe_ulong() can parse them correctly

* Only free the newly created id_map on error,
  to avoid passing garbage to lxc_map_ids()

Signed-off-by: Cameron Nemo <camerontnorman@gmail.com>
src/lxc/cmd/lxc_usernsexec.c