]> git.ipfire.org Git - thirdparty/lxc.git/commit
tools: only check for O_RDONLY 1379/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 4 Jan 2017 15:28:50 +0000 (16:28 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 4 Jan 2017 15:28:50 +0000 (16:28 +0100)
commit371802081a23d66f657dec0ccc00659f7b8263dd
tree0eb451cf26ca13e77c8c0dc5f38b1a3ae5d52d32
parentf290a8061f9c983efeefa735e9dbce7067df9c4d
tools: only check for O_RDONLY

On some Android systems the lxc folders where containers are stored might be
read-only and so checking for O_RDWR, will effectively make the tools useless
on these systems, so let's dumb the check down to O_RDONLY.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/tools/lxc_attach.c
src/lxc/tools/lxc_copy.c
src/lxc/tools/lxc_create.c
src/lxc/tools/lxc_snapshot.c
src/lxc/tools/lxc_start.c