mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 17:14:28 +00:00
tempfile.mktemp is deprecated because it only generates a filename without creating the file, introducing a TOCTOU race condition where another process could create a file with the same name between the mktemp call and the subsequent file operation. Replace it with tempfile.mkstemp, which atomically creates the file and returns a file descriptor, eliminating the race window. Assisted-by: Claude Code (claude-opus-4-6) Signed-off-by: Adrian Reber <areber@redhat.com> |
||
|---|---|---|
| .. | ||
| lib | ||
| static | ||
| transition | ||
| .gitignore | ||
| __init__.py | ||
| criu_config.py | ||
| Makefile | ||
| Makefile.inc | ||