summaryrefslogtreecommitdiff
path: root/contrib/lastpass2pass.rb
diff options
context:
space:
mode:
authorguns <self@sungpae.com>2012-10-16 17:28:15 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2012-10-17 00:53:50 +0200
commit8c46958d559d6fbb852f341f0fc2d5d60127ed91 (patch)
treec54c00eb0a4d2be174cccc629ee222b759aa2a29 /contrib/lastpass2pass.rb
parentde5282d1a6b17cd62122084e06eaaac36716a2c8 (diff)
downloadpass-8c46958d559d6fbb852f341f0fc2d5d60127ed91.tar.gz
pass-8c46958d559d6fbb852f341f0fc2d5d60127ed91.tar.bz2
pass-8c46958d559d6fbb852f341f0fc2d5d60127ed91.zip
Do not interpret backslashes when reading passwords
The `read` builtin accepts backslash notation for common non-printing characters by default, like `\t` and `\n`. This requires that any literal backslashes must also be escaped as `\\`. Given that `gpg -e` does not interpret input, the `read` invocations are changed to do the same. Also, the right hand side of an `==` comparison within `[[ ]]` must be quoted in order to suppress pattern metacharacter expansion. Quoting the bash manual: When the == and != operators are used, the string to the right of the operator is considered a pattern and matched according to the rules described below under Pattern Matching.
Diffstat (limited to 'contrib/lastpass2pass.rb')
0 files changed, 0 insertions, 0 deletions
'/portato.git/commit/i18n/es.po?h=v0.14.1&id=ecd7f97a68c31f9ccfe81cb276587417aad287e3&follow=1'>Renamed es_ES to esRené 'Necoro' Neumann1-0/+0 2010-04-15Fixed dependancy of the new_version plugin from "dev-util/git" to ↵Clement Bourgeois1-1/+1 "dev-vcs/git" to follow new Gentoo portage tree modifications 2010-04-14Make some useless info messages being debug statementsRené 'Necoro' Neumann2-34/+17 2010-04-14Improve the C modulesRené 'Necoro' Neumann3-37/+52 2010-04-14Small modifications made to the French translation (typos, grammar).Clement Bourgeois1-69/+69 2010-04-14Fixed the unicode support and stuff ... and also made eix faster :)René 'Necoro' Neumann1-20/+22 2010-04-14Disable debug messages by defaultRené 'Necoro' Neumann1-1/+1 2010-04-13Better eix error inheritance and handlingRené 'Necoro' Neumann1-2/+9 2010-04-13Fix the handling of FilterSets. Fixes bug #558887.René 'Necoro' Neumann2-56/+64 Now FilterSets are a subclass of InstalledSet. And return only these packages, which are installed ... but then all of them. 2010-04-12Updated newsRené 'Necoro' Neumann1-0/+1 2010-04-13Added my name to translators list.Clement Bourgeois1-0/+1