← Back to team overview

ecryptfs team mailing list archive

[Bug 294133] Re: ecryptfs-setup-private does not support login passphrases starting with a minus

 

** Attachment added: "Fixes usage of printf"
   http://launchpadlibrarian.net/19385911/fix-printf.patch

-- 
ecryptfs-setup-private does not support login passphrases starting with a minus
https://bugs.launchpad.net/bugs/294133
You received this bug notification because you are a member of eCryptfs,
which is subscribed to ecryptfs-utils in ubuntu.

Status in “ecryptfs-utils” source package in Ubuntu: New

Bug description:
Binary package hint: ecryptfs-utils

ecryptfs-setup-private check the login passphrase with 

line 156: printf "$LOGINPASS\0" | /sbin/unix_chkpwd

This does not work when the login passphrase starts with a minus, e.g. -test-

merlin@Spike:~$ ecryptfs-setup-private 
Enter your login passphrase: 
printf: 156: Illegal option -m

Solution:
Use
printf -- "$LOGINPASS\0" instead



References