From owner-freebsd-ports@FreeBSD.ORG Tue Feb 3 16:46:19 2009 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F514106566B for ; Tue, 3 Feb 2009 16:46:19 +0000 (UTC) (envelope-from mohacsi@niif.hu) Received: from mail.ki.iif.hu (mail.ki.iif.hu [IPv6:2001:738:0:411::241]) by mx1.freebsd.org (Postfix) with ESMTP id BB9628FC2A for ; Tue, 3 Feb 2009 16:46:18 +0000 (UTC) (envelope-from mohacsi@niif.hu) Received: from localhost (localhost [IPv6:::1]) by mail.ki.iif.hu (Postfix) with ESMTP id D8FDD84760; Tue, 3 Feb 2009 17:46:17 +0100 (CET) X-Virus-Scanned: by amavisd-new at mignon.ki.iif.hu Received: from mail.ki.iif.hu ([127.0.0.1]) by localhost (mignon.ki.iif.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LczCjCogjqEW; Tue, 3 Feb 2009 17:46:14 +0100 (CET) Received: by mail.ki.iif.hu (Postfix, from userid 9002) id B2B14846CF; Tue, 3 Feb 2009 17:46:14 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.ki.iif.hu (Postfix) with ESMTP id B10C784536; Tue, 3 Feb 2009 17:46:14 +0100 (CET) Date: Tue, 3 Feb 2009 17:46:14 +0100 (CET) From: Mohacsi Janos X-X-Sender: mohacsi@mignon.ki.iif.hu To: Network Infrastructure Support In-Reply-To: <1233601748.913639.762876698.14154.2@otrs.ewc.edu> Message-ID: References: <1233601748.913639.762876698.14154.2@otrs.ewc.edu> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: ports@FreeBSD.org Subject: Re: [Ticket#2009020210000574] FreeBSD Port: rancid-2.3.1_3 / modification to nlogoin patch to fix hang at password prompt / nlogi [...] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2009 16:46:19 -0000 Your request has been forwarded the the author of rancid. Best Regards, Janos Mohacsi Network Engineer, Research Associate, Head of Network Planning and Projects NIIF/HUNGARNET, HUNGARY Key 70EF9882: DEC2 C685 1ED4 C95A 145F 4300 6F64 7B00 70EF 9882 On Mon, 2 Feb 2009, Network Infrastructure Support wrote: > > > Created: > 02/02/2009 13:37:50 > --- nlogin.dist 2009-01-30 12:46:12.000000000 -0500 > +++ nlogin 2009-02-02 13:33:41.000000000 -0500 > @@ -353,21 +353,12 @@ > set uprompt_seen 1 > exp_continue > } > - "@\[^\r\n]+\[Pp]assword:" { > + "password:" { > # ssh pwd prompt > sleep 1 > send "$userpswd\r" > exp_continue > } > - "\[Pp]assword:" { > - sleep 1; > - if {$uprompt_seen == 1} { > - send "$userpswd\r" > - } else { > - send "$passwd\r" > - } > - exp_continue > - } > "$prompt" { break; } > } > } > @@ -485,14 +476,14 @@ > if {[login $firewall $ruser $userpswd $passwd $enapasswd $prompt $cmethod > $cyphertype]} { > continue > } > - if { $enable } { > - if {[do_enable $enauser $enapasswd]} { > - if { $do_command || $do_script } { > - close; wait > - continue > - } > - } > - } > +# if { $enable } { > +# if {[do_enable $enauser $enapasswd]} { > +# if { $do_command || $do_script } { > +# close; wait > +# continue > +# } > +# } > +# } > # we are logged in, now figure out the full prompt > send "\r" > expect {