Package: rancid
Version: 3.2-1
Severity: normal
Tags: patch fixed-upstream

The attached patch taken from 3.2.99 fixes alogin, which otherwise 
crashes when run by arancid.

-- 
ciao,
Marco
--- alogin.OLD	2015-04-26 20:00:57.000000000 +0200
+++ alogin	2015-08-05 23:54:55.433248474 +0200
@@ -456,9 +456,13 @@ proc run_commands { prompt command } {
 	    -re "^\[^\n\r]*$reprompt"		{}
 	    -re "^\[^\n\r ]*>>.*$reprompt"	{ exp_continue }
 	    -re "\[\n\r]+"			{ exp_continue }
-	    -re "^\*Display private keys? \[y/n]:" {
-						 send "y\r"
-						 exp_continue
+	    -re "Display private keys"		{
+						  if { "$cmethod" == "ssh" } {
+						    send "y\r"
+						  } else {
+						    send "n\r"
+						  }
+						  exp_continue
 						}
 	}
     }

Attachment: pgp4HV5Di42ry.pgp
Description: PGP signature

Reply via email to