diff options
author | Tar Committer <tar@ocjtech.us> | 2001-08-15 21:16:40 +0000 |
---|---|---|
committer | Tar Committer <tar@ocjtech.us> | 2001-08-15 21:16:40 +0000 |
commit | 10cc9157892d7902dddde70a5b9b2046d0c376ea (patch) | |
tree | f962debc7088fc42948848cd9e6ad05db4a4cd69 /bin/jlogin.in | |
parent | d19de03be4d4ad086ab9446e4196afdd6891fb79 (diff) | |
download | rancid-10cc9157892d7902dddde70a5b9b2046d0c376ea.tar.gz rancid-10cc9157892d7902dddde70a5b9b2046d0c376ea.tar.xz rancid-10cc9157892d7902dddde70a5b9b2046d0c376ea.zip |
Imported from rancid-2.2b7.tar.gz.rancid-2.2b7
Diffstat (limited to 'bin/jlogin.in')
-rwxr-xr-x | bin/jlogin.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/jlogin.in b/bin/jlogin.in index 9ff0626..ee49d31 100755 --- a/bin/jlogin.in +++ b/bin/jlogin.in @@ -95,9 +95,9 @@ for {set i 0} {$i < $argc} {incr i} { # user Password } -p* - -P* { - if {! [ regexp .\[pP\](.+) $arg ignore userpswd]} { + if {! [ regexp .\[pP\](.+) $arg ignore userpasswd]} { incr i - set userpswd [ lindex $argv $i ] + set userpasswd [ lindex $argv $i ] } set do_passwd 0 # passphrase @@ -447,9 +447,9 @@ foreach router [lrange $argv $i end] { } # Figure out loginname's password (if different from the vty password) - if {[info exists userpswd]} { + if {[info exists userpasswd]} { # command line passwd - set passwd $userpswd + set passwd $userpasswd } else { set userpswd [lindex [find userpassword $loginname@$router] 0] if { "$userpswd" == "" } { |