diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2018-08-06 10:25:09 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-08 10:51:28 +0100 |
commit | fae23c72288068f90e2f357a8abf1384850c02ed (patch) | |
tree | b513fbe49c5b89e39c1450522571640d465cce67 /scripts/lib/scriptpath.py | |
parent | 990a9c944375146bb3f0208b30e8b7f50239cef5 (diff) | |
download | openembedded-core-fae23c72288068f90e2f357a8abf1384850c02ed.tar.gz openembedded-core-fae23c72288068f90e2f357a8abf1384850c02ed.tar.bz2 openembedded-core-fae23c72288068f90e2f357a8abf1384850c02ed.zip |
classes/reproducible_build: Avoid dereferencing symlinks
Using os.path.getmtime() will dereference symbolic links in an attempt
to get the last modified time. This can cause errors if the target
doesn't exist, or worse map to some absolute build host path which would
make a build not reproducible.
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/scriptpath.py')
0 files changed, 0 insertions, 0 deletions