diff options
author | Richard Purdie <richard@openedhand.com> | 2006-11-29 16:55:31 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-11-29 16:55:31 +0000 |
commit | adabf6c0931af1282a7c75321cd8b050e8d05c95 (patch) | |
tree | d5f831a753474845f99fb250ab66a20b08e9ca3b | |
parent | 2dc275c3ca35283300a1b73dbc5fbafa62d9db68 (diff) | |
download | openembedded-core-adabf6c0931af1282a7c75321cd8b050e8d05c95.tar.gz openembedded-core-adabf6c0931af1282a7c75321cd8b050e8d05c95.tar.bz2 openembedded-core-adabf6c0931af1282a7c75321cd8b050e8d05c95.zip |
sanity.bbclass: Add umask check
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@986 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r-- | meta/classes/sanity.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 019edd963e..e8cff1d348 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -103,6 +103,11 @@ def check_sanity(e): missing = missing.rstrip(',') messages = messages + "Please install following missing utilities: %s\n" % missing + omask = os.umask(022) + if omask & 0755: + messages = messages + "Please use a umask which allows a+rx and u+rwx\n" + os.umask(omask) + if messages != "": raise_sanity_error(messages) |