-
Notifications
You must be signed in to change notification settings - Fork 71
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
Unexpected behavior when specifying same input and output file #21
Comments
While that's true, I don't want to make an effort to prevent it. It might be possible to prevent some instances, it's possible that the same file has different names for to using symbolic links, hard links, etc. |
Hi Paul! Cheers Marco |
I'll bet a normal link on Linux would fool even the python code. One option that might work is to lock the input file exclusively. But that's got other negative consequences, like background backup processes failing. |
No, it works (I've tested it). |
Very nice. I didn't expect it to be that thorough. |
Yeah, in fact I think the implementation is pretty complex... |
Hi!
Yesterday a programmer pointed out a corner case in pyAesCrypt usage:
marcobellaccini/pyAesCrypt#5
He was wondering whether specifying same input and output file is legit.
I don't think that's a valid use case, so I explicitly prevented the user from doing it.
For the sake of completeness, I've tested the same use case with the Linux command-line version of AESCrypt (v3.13) and I've got this error:
after executing the command, foo.aes is deleted too.
Cheers
Marco
The text was updated successfully, but these errors were encountered: