-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Removal of files outside of password-store #300
Comments
The affected user sent me his QtPass.conf file, that only contained [mainwindow] layout related information. It seems that QtPass was never properly initialised. I'm keeping this ticket as a reminder to write some safeguards on the (native) handlers to never be able to operate outside of the store. |
Hmm, just wondering how/if it could remove files outside the home folder, as when running the program as non-su you wouldn't have permissions to do so. My guess would be, that the home folder was choosen as password-store. (Maybe qtpass should catch initializing the home folder as pwd-store with a pop up warning?) |
I think QtPass should check files to remove before cleanup. So even if you have photo or videos in this folder the delete method will skip those files. Which types of file QtPass handles? Only gpg files? UPDATE: |
There are two file types . . |
Ok i found a way. The problem itself is "pass" because the command rm doesn't accept specific arguments like Test/*.gpg so i need to:
It that case no external pass file are deleted accidentally and if you mix something you are safe. |
My main question is, why would there ever be non pass related files in your |
I have the same question LoL but i think that someone doesn't trouble if something goes into this folder (it's a folder anyway). I think it's related to bad user experience more than i should do or i shouldn't do this. |
Perhaps scanning the folder for non |
I can move in 2 ways:
Which do you prefer? |
Since the second option doesn't involve changing the way |
Ok so goes to this way. Warn the user or change something to prevent errors are the same as result. |
Scanning the folder for non |
I thought we can exec an rm function with the specified folder and arguments like *.gpg and so on but as you said it's a GUI for Pass, so we should just have same pass experience with more "salt" |
It could happen, that if you sync the folder with other tools than git, these tools leave some lock files or other hidden files. I think I had this, when I was syncing to android with "Folder Sync" app... On the other hand: These files are pass "related" and can be removed with the folder... |
@FiloSpaTeam changes have been merged |
Received via mail:
Looking up the sender told me this was most probably on Ubuntu linux.
Have tried to reproduce, but couldn't so-far.
The text was updated successfully, but these errors were encountered: