sanity.bbclass: Add umask check

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@986 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie 2006-11-29 16:55:31 +00:00
parent 2dc275c3ca
commit adabf6c093
1 changed files with 5 additions and 0 deletions

View File

@ -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)