monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] monotone-server: empty passphrase from get_passphra


From: Richard Levitte - VMS Whacker
Subject: Re: [Monotone-devel] monotone-server: empty passphrase from get_passphrase
Date: Tue, 14 Nov 2006 06:49:29 +0100 (CET)

False trail!

The error is in monotone-server.config.  For reconfigure, it happily
gets the same input as for configure, and then saves whatever the user
gave, and does NOT regenerate a new passphrase if the user just
pressed Enter...

Matthew, what was the intention here?  It does look faulty to me, one
way or another.

Cheers,
Richard

In message <address@hidden> on Tue, 14 Nov 2006 00:01:16 +0100 (CET), Richard 
Levitte - VMS Whacker <address@hidden> said:

richard> In message <address@hidden> on Mon, 13 Nov 2006 15:18:10 -0700, "Shaun 
Jackman" <address@hidden> said:
richard> 
richard> sjackman> $ sudo dpkg-reconfigure monotone-server
richard> sjackman> [accept all the defaults]
richard> sjackman> $ sudo /etc/init.d/monotone start
richard> sjackman> Starting Monotone Server: monotone.
richard> sjackman> $ cat /var/log/monotone/mtn.log
richard> sjackman> mtn: misuse: got empty passphrase from get_passphrase() hook
richard> sjackman> $ sudo cat /etc/monotone/passphrases
richard> sjackman> address@hidden ""
richard> sjackman> 
richard> sjackman> This bug seems to be caused be running dpkg-reconfigure
richard> sjackman> after installing monotone-server. It worked as expected
richard> sjackman> after purging and reinstalling monotone-server.
richard> 
richard> I suspect that the following lines in debian/monotone-server.postinst
richard> don't work quite right and result in an empty password:
richard> 
richard>            # read our passphrase from a file
richard>            if [ -e "$MTN_CONFDIR/passphrases" ]; then
richard>                db_set monotone-server/passphrase "`grep "$MTN_KEY" 
$MTN_CONFDIR/passphrases | awk -F ' "|" "|" |"' '{print $2}'`"
richard>            fi
richard> 
richard> I'm not in a position to test that without destroying something for
richard> the moment...

-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte                         address@hidden
                                        http://richard.levitte.org/

"When I became a man I put away childish things, including
 the fear of childishness and the desire to be very grown up."
                                                -- C.S. Lewis




reply via email to

[Prev in Thread] Current Thread [Next in Thread]