summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-11-29 16:55:31 +0000
committerRichard Purdie <richard@openedhand.com>2006-11-29 16:55:31 +0000
commitadabf6c0931af1282a7c75321cd8b050e8d05c95 (patch)
treed5f831a753474845f99fb250ab66a20b08e9ca3b
parent2dc275c3ca35283300a1b73dbc5fbafa62d9db68 (diff)
downloadast2050-yocto-poky-adabf6c0931af1282a7c75321cd8b050e8d05c95.zip
ast2050-yocto-poky-adabf6c0931af1282a7c75321cd8b050e8d05c95.tar.gz
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.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 019edd9..e8cff1d 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)
OpenPOWER on IntegriCloud