From: Christian Brauner Date: Mon, 18 Oct 2021 10:07:37 +0000 (+0200) Subject: conf: don't fail umount2() X-Git-Tag: lxc-5.0.0~71^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4000%2Fhead;p=thirdparty%2Flxc.git conf: don't fail umount2() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index bbce64049..ce98c6163 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -1851,7 +1851,8 @@ static int lxc_finish_devpts_child(struct lxc_handler *handler) return syserror("Failed to create path"); close_prot_errno_disarm(conf->devpts_fd); - return umount2(rootfs->buf, MNT_DETACH); + (void)umount2(rootfs->buf, MNT_DETACH); + return 0; } static int lxc_send_devpts_to_parent(struct lxc_handler *handler)