mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 09:32:12 +02:00
sanity.bbclass: expand warning when chmod fails
As suggested, add exception message to warning in sanity.bbclass when chmod fails on TMPDIR. [YOCTO #7669] (From OE-Core rev: f6609aca5c533325411567a79130114654c50f3b) Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
409e6e02ff
commit
96a5cfd656
@@ -843,8 +843,8 @@ def check_sanity_everybuild(status, d):
|
||||
os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISUID)
|
||||
os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISGID)
|
||||
os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISVTX)
|
||||
except OSError:
|
||||
bb.warn("Unable to chmod TMPDIR: %s" % tmpdir)
|
||||
except OSError as exc:
|
||||
bb.warn("Unable to chmod TMPDIR: %s" % exc)
|
||||
with open(checkfile, "w") as f:
|
||||
f.write(tmpdir)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user