[oe-commits] [openembedded-core] 05/38: runqemu: chmod 0o777 for lockdir
git at git.openembedded.org
git at git.openembedded.org
Thu Jul 27 08:31:38 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 4a5d21dbdc88982c2c90e660811b84983eaebeb7
Author: Robert Yang <liezhi.yang at windriver.com>
AuthorDate: Wed Apr 12 02:04:31 2017 +0000
runqemu: chmod 0o777 for lockdir
Multi-users may run qemu on the same host, all of them should be able to
create or remove lock in lockdir, so set lockdir's mode to 0o777.
Note, os.mkdir()'s mode is default to 0o777, but the current umask value is
first masked out, so use os.chmod() to set it.
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
scripts/runqemu | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/runqemu b/scripts/runqemu
index 5f2b38f..239c48f 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -910,6 +910,7 @@ class BaseConfig(object):
# running at the same time.
try:
os.mkdir(lockdir)
+ os.chmod(lockdir, 0o777)
except FileExistsError:
pass
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list