Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configure.py: don't use deprecated mktemp()
configure.py uses the deprecated Python function tempfile.mktemp(). Because this function is labeled a "security risk" it is also a magnet for automated security scanners... So let's replace it with the recommended tempfile.mkstemp() and avoid future complaints. The actual security implications of this mktemp() call is negligible to non-existent: First it's just the build process (configure.py), not the build product itself. Second, the worst that an attacker (which needs to run in the build machine!) can do is to cause a compilation test in configure.py to fail because it can't write to its output file. Reported by @srikanthprathi Refs #997 Signed-off-by: Nadav Har'El <nyh@scylladb.com> Message-Id: <20220111121412.609430-1-nyh@scylladb.com>
- Loading branch information