[PATCH] Check command to ensure basic sanity
Kjetil Torgrim Homme
kjetil.homme at redpill-linpro.com
Thu Nov 23 15:34:46 CET 2017
Den 22. nov. 2017 20:56, skreiv Jaseem Abid:
> I recently noticed that I could not decrypt some files in the password store
> because I no longer had access to the keys. I also had some corrupt files. This
> command adds some basic sanity checks to the password store and prints out files
> it cannot successfully decrypt.
>
> Exits 0 if everything is OK. Prints failed files and then exists with 1
> otherwise. Takes no arguments.
>
> Code adapted from grep command with minor modifications.
>
> If the basic approach is OK, I'll be happy to add tests, completion and
> documentation.
I like the idea, but this is a bit simplistic. you might not be granted
access to all the files in the tree, so you should check against .gpg-id
as well.
--
Kjetil T. Homme
Redpill Linpro - Changing the game
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20171123/7ef3899e/attachment.asc>
More information about the Password-Store
mailing list