diff options
author | Tar Committer <tar@ocjtech.us> | 2007-01-14 05:39:54 +0000 |
---|---|---|
committer | Tar Committer <tar@ocjtech.us> | 2007-01-14 05:39:54 +0000 |
commit | ac54243f382e817c08c1f895ccfdc05dcacdb044 (patch) | |
tree | 1c9b224e2714d9a6fd0ba8a7b211e287d3f8c9b9 /bin/blogin.in | |
parent | 1a7c45398738cdb4eaafdc9e0962272f19d54816 (diff) | |
download | rancid-593f78fbdce5b4e2cac67a4721e25d5e57f29a0b.tar.gz rancid-593f78fbdce5b4e2cac67a4721e25d5e57f29a0b.tar.xz rancid-593f78fbdce5b4e2cac67a4721e25d5e57f29a0b.zip |
Imported from rancid-2.3.2a7.tar.gz.rancid-2.3.2a7
Diffstat (limited to 'bin/blogin.in')
-rw-r--r-- | bin/blogin.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/blogin.in b/bin/blogin.in index 9c19de9..37c28e8 100644 --- a/bin/blogin.in +++ b/bin/blogin.in @@ -1,6 +1,6 @@ #! @EXPECT_PATH@ -- ## -## $Id: blogin.in,v 1.33 2006/12/05 16:50:52 heas Exp $ +## $Id: blogin.in,v 1.36 2006/12/08 21:28:25 heas Exp $ ## ## @PACKAGE@ @VERSION@ ## Copyright (C) 1997-2006 by Terrapin Communications, Inc. @@ -532,6 +532,9 @@ foreach router [lrange $argv $i end] { } set passwd [join [lindex $pswd 0] ""] set enapasswd [join [lindex $pswd 1] ""] + } else { + set passwd $userpasswd + set enapasswd $enapasswd } # Figure out username @@ -605,7 +608,7 @@ foreach router [lrange $argv $i end] { if { $enable } { if {[do_enable $enauser $enapasswd]} { if { $do_command || $do_script } { - close; wait + catch {close}; catch {wait} continue } } |