Pass absolute paths to atomic_move() (#8925)

Pass absolute paths to atmoic_move().
This commit is contained in:
Felix Fontein 2024-10-01 21:55:04 +03:00 committed by GitHub
parent a7d1b0fc52
commit 7c913b239a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 12 additions and 6 deletions

View file

@ -339,7 +339,7 @@ def main():
pass
# Move tempfile to newfile
module.atomic_move(nf.name, limits_conf)
module.atomic_move(os.path.abspath(nf.name), os.path.abspath(limits_conf))
try:
nf.close()