~mrooney/ecryptfs/nautilus-integration

« back to all changes in this revision

Viewing changes to src/utils/ecryptfs-setup-private

  • Committer: Dustin Kirkland
  • Date: 2009-04-30 23:24:50 UTC
  • Revision ID: kirkland@canonical.com-20090430232450-d0gzhpag64or3uec
unix_chkpwd is not always present

  * src/utils/ecryptfs-setup-private: unix_chkpwd is not always present
    (eg, gentoo), LP: #332341


Signed-off-by: Dustin Kirkland <kirkland@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
240
240
                LOGINPASS=`head -n1`
241
241
                stty $stty_orig
242
242
                echo
243
 
                if [ $WRAPPING_PASS != "LOGIN" ]; then
 
243
                if [ $WRAPPING_PASS != "LOGIN" -o ! -x /sbin/unix_chkpwd ]; then
 
244
                        # If we can't check the accuracy of the user's entered
 
245
                        # passphrase, force them to type it twice (matching)
244
246
                        stty -echo
245
247
                        echo -n "$MESSAGE (again): "
246
248
                        LOGINPASS2=`head -n1`