Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adapter: Fix option parsing #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

julianscheel
Copy link

name ended up as a unknown option due to not being part of the if/elif block.

Signed-off-by: Julian Scheel [email protected]

name ended up as a unknown option due to not being part of the if/elif block.

Signed-off-by: Julian Scheel <[email protected]>
Using shutil.copy is not atomic. The only guaranteed atomic operation is
os.rename, which requires source and target to be on the same filesystem.
Ensure this by resolving the real file path in case it is symlink and place
the tmp file in the same directory.

Signed-off-by: Julian Scheel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant