The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/5822
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === This fixes #5797. Signed-off-by: Free Ekanayaka <[email protected]>
From e52d996c68e5062181884d92375d9a3503d04781 Mon Sep 17 00:00:00 2001 From: Free Ekanayaka <[email protected]> Date: Wed, 5 Jun 2019 16:53:03 +0200 Subject: [PATCH] Don't change permissions of existing containers directory This fixes #5797. Signed-off-by: Free Ekanayaka <[email protected]> --- lxd/storage.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lxd/storage.go b/lxd/storage.go index f8c7e70c45..cc5c29872c 100644 --- a/lxd/storage.go +++ b/lxd/storage.go @@ -634,11 +634,10 @@ func createContainerMountpoint(mountPoint string, mountPointSymlink string, priv if err != nil { return err } - } - - err = os.Chmod(mountPoint, mode) - if err != nil { - return err + err = os.Chmod(mountPoint, mode) + if err != nil { + return err + } } if !mntPointSymlinkExist {
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
