Skip to content

Commit

Permalink
Fix the race condition (#4558)
Browse files Browse the repository at this point in the history
  • Loading branch information
guedou authored Oct 6, 2024
1 parent c38a5de commit 2ae46b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scapy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _probe_xdg_folder(var, default, *cf):
# https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
# "If, when attempting to write a file, the destination directory is
# non-existent an attempt should be made to create it with permission 0700."
path.mkdir(mode=0o700)
path.mkdir(mode=0o700, exist_ok=True)
return path.joinpath(*cf).resolve()


Expand Down

0 comments on commit 2ae46b7

Please sign in to comment.