Fix potential symlink loop in _compress_text() 74/63474/1
authorEric Ball <eball@linuxfoundation.org>
Fri, 20 Mar 2020 23:26:47 +0000 (16:26 -0700)
committerEric Ball <eball@linuxfoundation.org>
Fri, 20 Mar 2020 23:26:47 +0000 (16:26 -0700)
commit4ec4b568acfe5952a13ad5a0894341b183f4f20e
treeb55f19688c2da3b0273a3a823dc7b9e7cc550aa8
parentcdb062b1b1e33ec625a0c5ed0fd754d130d6ae1b
Fix potential symlink loop in _compress_text()

By checking if os.path.exists can find the path, we stop the method
from attempting to traverse symlinked directories.
This also pins a more recent version of pre-commit, as the older
version was making a pre-commit file with errors.

Issue: RELENG-2576
Change-Id: I2265c9895444892877f684b807287ebe8319083a
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
lftools/deploy.py
requirements.txt