← Back to team overview

ecryptfs team mailing list archive

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

 

*** This bug is a duplicate of bug 290445 ***
    https://bugs.launchpad.net/bugs/290445

Thanks for the report, and the patch.

I believe this bug is a duplicate of Bug #290445, where other
characters, such as "%" were also giving us trouble.

Please upgrade to ecryptfs-utils >= 53-1ubuntu12 and let me know if it's
still a problem.

Also, one other bit of unrelated advice...  When you create a patch,
please use "diff -up".  That'll make it more readable, and such that we
can apply it directly.  Thanks!

:-Dustin

** This bug has been marked a duplicate of bug 290445
   ecryptfs-setup-private fails if passphrase contains character "%"

** This bug is no longer a duplicate of bug 290445
   ecryptfs-setup-private fails if passphrase contains character "%"

** Also affects: ecryptfs
   Importance: Undecided
       Status: New

** Changed in: ecryptfs
   Importance: Undecided => Medium
     Assignee: (unassigned) => Dustin Kirkland (kirkland)
       Status: New => In Progress

** Changed in: ecryptfs-utils (Ubuntu)
   Importance: Undecided => Medium
     Assignee: (unassigned) => Dustin Kirkland (kirkland)
       Status: New => In Progress

** Changed in: ecryptfs
       Status: In Progress => Fix Released

** This bug has been marked a duplicate of bug 290445
   ecryptfs-setup-private fails if passphrase contains character "%"

-- 
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 - Enterprise Cryptographic Filesystem: Fix Released
Status in “ecryptfs-utils” source package in Ubuntu: In Progress

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