[pass] Can't delete when using same name for file and folder

Dashamir Hoxha dashohoxha at gmail.com
Thu Feb 4 22:10:01 CET 2016


Maybe it should not allow to create a directory with the same name as a
file (or vice-versa). This does not sound normal.

Meanwhile, as a workaround, you can rename the file and then delete it.

On Thu, Feb 4, 2016 at 9:55 PM, <the_jinx at etv.cx> wrote:

> Hi,
>
> A QtPass user found an interesting bug or quirk in pass.
> https://github.com/IJHack/qtpass/issues/159
>
> Here is what happens when you create a password file and folder with the
> same name.
>
> $ pass add test-159
> I enter "test”
> $ pass add test-159/test
> I enter "test 2”
> $ pass test-159
> It returns "test”
> $ pass rm test-159
> rm: /home/annejan/.password-store/test-159: is a directory
>
> I also tested order of creation (first folder or first file) doesn't
> matter, you can do either.
>
> When I find the time I’ll see if I can fix this behaviour in a nice way
> and create a patch,
> perhaps pass should ask which one is meant, the file or folder?
>
>         Anne Jan
> _______________________________________________
> Password-Store mailing list
> Password-Store at lists.zx2c4.com
> http://lists.zx2c4.com/mailman/listinfo/password-store
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20160204/b3347c92/attachment.html>


More information about the Password-Store mailing list