Commits
- Commit:
3cf28f46d454a6b95131133179393b3ae6ac7ec4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
avoid issuing unnecessary `got add'
plass always did a `got add $file' before committing changes. However,
this leads to a possibly misleading "file has unexpected status" error
being printed to stderr.
Instead, `got add $file' only when the file is new.
- Commit:
8c4930cfcef7c2310f05b7007f95750513e1fd79
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactor cmd_edit
Now it always deletes the temporary file.
- Commit:
fc9fec0528e6bbd15f3b6ebbc175b3b907b52a94
- From:
- Omar Polo <op@omarpolo.com>
- Date:
plass tee: set binmode to avoid mangling binary data
- Commit:
1169deba9daca5ae8f560bf4cc3e405435a5e1e0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactor cmd_tee: simplify the code
inline (with tweaks) writepass, it's redundant to have. While here also
read/write blockwise instead that of linewise.
- Commit:
77ea6ba189318aa615484e5dbcb7271af75eb89f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove handling of PLASS_GOT environment variable
There's no real reason to have this variable, there's only one `got'
usually and people are better off putting it somewhere in $PATH.
Retain PLASS_GPG as there seem to be a little issue with gpg vs gpg2 so
the knob may be useful in practice.
- Commit:
71c704e31adc9f16efb0cd55ac5abb17249bd867
- From:
- Omar Polo <op@omarpolo.com>
- Date:
bump copyright
- Commit:
87986040c34281a3660bec9a65057f5a6aabfd1d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
plass edit: delete the temp file
File::Temp lied. it says UNLINK defaults to true but the files were
still in my /tmp. Quick workaround, needs something better that takes
care also of cleaning up on die().
- Commit:
8ce01796c68dfe0e12b6a1869be69cf3b2cf2584
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add `edit' subcommand to interactively modify an entry
It's more or less equivalent to
$ cd /tmp
$ umask 077
$ plass cat entry > tempfile
$ $EDITOR tempfile
$ plass tee entry < tempfile
$ rm tempfile
but way easier. It's also safer because it creates an unique randomly
named file set up with correct permissions.
Suggested by heph, thanks!
- Commit:
91fcc6e3ddaac1838153b32e3d6d453b445309c0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
make `plass find' case-insensitive
This does not affect `plass cat', `plass tee' etc, only the `find'
sub-command.
Discussed with heph.
- Commit:
c992a1e9b1b3f12475053356a5e9e2f0381211f3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
plass: remove the `gen' sub-command; now there is pwg(1)
- Commit:
4602d277c689ba05915898b55c6f2985045aa6b5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use /dev/urandom instead of /dev/random
From urandom(4) on OpenBSD
For portability reasons, never use /dev/random. On OpenBSD, it is an
alias for /dev/urandom, but on many other systems misbehaves by blocking
because their random number generators lack a robust boot-time
initialization sequence.
- Commit:
fb70a4127eef7cdd86cde443c9409c8d7f247ab6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
check pattern after stripping store path and extension
now `plass find ^keys' will correctly list only entries that starts
with "keys"
- Commit:
dd204b00777178e93099b89fff9abf7c59cee8de
- From:
- Omar Polo <op@omarpolo.com>
- Date:
slightly better error message for no input in `plass tee'
- Commit:
5eba1883785391436224f0052c8148d61a48e2cb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
plass tee: fix multiple line handling, commit message string
previously, `plass tee' was limited to only one line; now it's
unlimited. While here, fix the commit message too: checking the
existence of the file after creating/overwriting it is stupid.
- Commit:
017e8c818783c5b93ec573b916589df7fe020698
- From:
- Omar Polo <op@omarpolo.com>
- Date:
retire `got' and `tog' subcmd
they're just a glorified `cd'