From: Christian Brauner Date: Mon, 8 Feb 2021 13:46:08 +0000 (+0100) Subject: mount_utils: s/OPEN_TREE_CLONE | OPEN_TREE_CLONE/OPEN_TREE_CLONE | OPEN_TREE_CLOEXEC/g X-Git-Tag: lxc-5.0.0~296^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ade356b90cd39a983872c0b9bf406b5251087768;p=thirdparty%2Flxc.git mount_utils: s/OPEN_TREE_CLONE | OPEN_TREE_CLONE/OPEN_TREE_CLONE | OPEN_TREE_CLOEXEC/g Signed-off-by: Christian Brauner --- diff --git a/src/lxc/mount_utils.c b/src/lxc/mount_utils.c index 78e50ecac..d47cbe655 100644 --- a/src/lxc/mount_utils.c +++ b/src/lxc/mount_utils.c @@ -244,7 +244,7 @@ int fd_bind_mount(int dfd_from, const char *path_from, { __do_close int __fd_from = -EBADF, __fd_to = -EBADF; __do_close int fd_tree_from = -EBADF; - unsigned int open_tree_flags = AT_EMPTY_PATH | OPEN_TREE_CLONE | OPEN_TREE_CLONE; + unsigned int open_tree_flags = AT_EMPTY_PATH | OPEN_TREE_CLONE | OPEN_TREE_CLOEXEC; int fd_from, fd_to, ret; if (!is_empty_string(path_from)) {