Bug#364153: [Pkg-cryptsetup-devel] Bug#364153: cryptsetup: timeout
option leaves terminal in bad state
Jonas Meurer
jonas at freesources.org
Fri Apr 28 12:02:47 UTC 2006
On 22/04/2006 Andres Salomon wrote:
> Attached is a patch that fixes this issue. In the process, it also gets
> rid of getpass() (which is considered obsolete, and should not be used;
> see the manpage). Instead, we use select()+read(), along w/ manually
> disabling ECHO in the terminal.
hello Andres,
i've tested your patch, and it seems to work perfectly well.
but unfortunately this is only the case for the luks* features of
cryptsetup. Plain 'cryptsetup create' still leaves the terminal in a bad
state after terminating the passphrase prompt.
could you try to investigate that and update the patch to fix it as
well?
also, the passphrase for 'cryptsetup create' is truncated to 32
characters if submitted over stdin, like:
# echo "abcdefghijklmnopqrstuvwxyz0123456789" | cryptsetup create name /dev/device
maybe this is related and can easily be fixed together. nevermind if it
is not related.
i've not good enough c skills to provide a fix for the two bugs, and
maybe you're interested in seeing them fixed too.
thanks for your help,
jonas
ps: you seem to be interested in the cryptsetup package, and you are a
debian developer. maybe you'dd like to join the pkg-cryptsetup
maintainer team and become a co-maintainer :-)
More information about the Pkg-cryptsetup-devel
mailing list